Navigation field creates different links for items than the links created by the category view

More
6 years 10 months ago #71662 by lipatovroman
My opinion - this is not normal.

Also I found more.

Not matter which part of url to remove.
Example:

Normal - opens item page

domain/category1/category2/category3/NNN-item-alias

NOT Normal - all these links opens item page too :blink:
domain/category1/category2/NNN-item-alias
domain/category1/NNN-item-alias
domain/NNN-item-alias

I have checked native Joomla behavior com_content - it works same.

So, my opinion, it should not be!

But we have that we have...

So, next, very major question:

I have to protect the parent categories from adding items.

How to disallow adding items in category1 and category2? Allowed to add items only in last category3.

category1 - disallow adding items
-category2 - disallow adding items
--category3 - allowed adding items

Thanks.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71665 by ggppdk
Hello

Not matter which part of url to remove.
- it opens item page

domain/category1/category2/category3/NNN-item-alias

all these links opens item page too :blink:
domain/category1/category2/NNN-item-alias
domain/category1/NNN-item-alias
domain/NNN-item-alias

I have checked native Joomla behavior com_content - it works same.

So, my opinion, it should not be!


Exactly the above is by design,
we need some specifc rules for decideing what the current URL is
- WHICH component (done via last menu item)
- WHICH view (done by number of /segments/ after last menu-alias)

also if you change item / category alias (NOT the menu alias, the item alias or category alias)
ID-item-alias
ID-category-allias

then the URLs will not break either, it is by design
--- ! the thing is that FLEXIcontent has poper rel-canonical to handle SEO for items

about disallowing parent categories
it is basic Joomla ACL usage

you need to "SOFT" deny parent categories, meaning at component ACL permission and at Joomla Global config DO NOT SET allow and DO NOT SET deny
aka set it to "Not set"

this is "SOFT Deny", meaning you can override at some child category

category1 - disallow adding items because inheriting SOFT deny
-category2 - disallow adding items because inheriting SOFT deny
--category3 - allowed adding items (explicitely set it to allow)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71666 by lipatovroman

you need to "SOFT" deny parent categories


How and where I can do it?

I need parent categories displays as not active like Android on this screenshot:

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago - 6 years 10 months ago #71670 by ggppdk
Hello

what you suggest with categories is something Joomla ACL supports for all components
it is not specific to FLEXIcontent

0. Verify in Global configuration Public usergroup has "Create" set to "Not Set"
1. Verify in Global configuration Usergroup A is under "Registered" usergroup and that "Registered" has "Create" set to "Inherit" aka "SOFT deny"
2. Verify in Global configuration the "Usergroup A" (=your authors) has set "Create" to "Inherit" aka "SOFT deny"
3. Verify that in FLEXIcontent component permissions "Usergroup A" has "create" set to "Inherit" aka "SOFT deny"
4. Verify that category 1 permissions have "create" set to "Inherit" aka "SOFT deny"
5. Verify that category 2 permissions have "create" set to "Inherit" aka "SOFT deny"
6. Verify that category 3 permissions have "create" set to "Allowed" (which is possible because parent does not have HARD deny (explicit Deny))


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 6 years 10 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71675 by lipatovroman
There is no option "Not set" in Global configuration - only Inherited, Allow or Denny

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #71684 by ggppdk
Hello

"Not set" exists only for top-level usergroups
in your picture top-level usergroups is
-- Public usergroup

so in your case

1. "Create" for Public usergroup configure to "Not set"
2. "Create" for Manager usergroup configure to "Inherit" (aka SOFT deny because parent did not set it)
3. "Create" for Administrator usergroup configure to "Inherit" (aka SOFT deny because non of its ancestor user group has SET it)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.411 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline