Keyword

How to show K2 Category, to a user assigned to it.

  • Nino Riconalla
  • Nino Riconalla's Avatar Topic Author
  • Offline
  • New Member
More
9 years 10 months ago #134750 by Nino Riconalla
Hello,

I have this problem or situation that I want to show K2 category/categories only to a user who is assigned to the specific category, if a user is logged in.

Right now it will display all the categories even if the user is logged in or not, and can add items/articles to a specific category assigned to it if he/she's logged in which works as expected.

Does anyone here knows how to solve it? Or any suggestions how can I make it work?

Any help will be much appreciated.


Thanks,

Nino

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #134759 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to show K2 Category, to a user assigned to it.
You have to change the access level to these categories.
K2 categories use the same ACL as Joomla! so you have to adding the proper Joomla! (not K2) user groups.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Nino Riconalla
  • Nino Riconalla's Avatar Topic Author
  • Offline
  • New Member
More
9 years 10 months ago #134763 by Nino Riconalla
Replied by Nino Riconalla on topic How to show K2 Category, to a user assigned to it.
Hello Krikor,

Thank you for your reply. I tried to create new User Group in Joomla ACL but still don't work as i want.

Because I really want to show the categories only if the user is assigned to it if he/she is logged in and show all the categories when not logged in. My only problem is to show the specific category/categories only to a user who was assigned to this category.

This is how i want it to display

Logged in:
Category assign

Not Logged in:
Category assign
Category not assign
Category etc


Thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #134784 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to show K2 Category, to a user assigned to it.
I do not think this is technically possibly with Joomla!'s ACL.

If the access level is set to Public it will be visible throughout for logged in users.

What you can do is have a mod_menu published specifically published for each user group.

This has to be done in your template using Joomla!'s user function.
docs.joomla.org/Accessing_the_current_user_object

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum