Limiting Categories in Drop Down Menu

  • Nadja King
  • Nadja King's Avatar Topic Author
  • Offline
  • New Member
5 months 1 week ago #170732 by Nadja King
Nadja King created the topic: Limiting Categories in Drop Down Menu
I have been searching for a long time to try to find some way to communicate ongoing with individual members of my site on my pages privately one on one. I haven't found anything I really like, so thought I would try K2 and create an individual blog for every member. It is for online classes and i want them to be able to post pictures and video, so I set it up so that they can post from the front end as per these instructions.

Which worked really well. So no problem there.

But I did notice as per the instructions that the you have to get the user to click from a category drop down list.
"Login to the front end of your site, and click the "add item" from the K2 login module.
In the modal window, check the categories drop down and you will see that you can only select those that were set in the User group."

And yes you can select those that you have set up for them, but the problem is for me is that you see every single category, If I set up a category for every single user, there could be hundreds and I don't want them to see those categories that are greyed out and they don't have access to. I am hoping since the program is smart enough to grey them out, that there is a way to tell K2 not to show them at all.

Any help is appreciated!!

Thank you

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
5 months 1 week ago #170756 by Fotis
Fotis replied the topic: Limiting Categories in Drop Down Menu
You could achieve what you want in many ways really. A simpler approach (at least for me) would be to create a single category for these user submissions. If you fine-tune K2 frontend user permissions then users can add and edit only their items. You can create an override for the item edit form in the frontend (the itemform.php file) and preset the category selector to the category for user submissions and then hide it with CSS (so the actual input element is submitted when the form is saved). To display their entries in the frontend, you simply make their user profile link available somewhere to click (like this: ).

These 3 steps should cover 100% what you're after.

Unfortunately it's not possible to tie/assign a category to a user as there is no such correlation in K2.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory:

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum