Keyword

Load module in item

More
9 years 10 months ago #134116 by Ariel
Load module in item was created by Ariel
Hi, how are you?

I have a website based on k2 with more than 500 items.
I'd like to add a module to all k2 items, but I wanted to know if there's is a way to avoid creating each of the 500 menu items to assign the module.
I have menu items for the categories and don't want the module to show in those pages.

Do you know the way to avoid the 500 menu creations? I tried assigning the module to 'Everyone but selected' but it didn't work.

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 #134128 by Krikor Boghossian
Replied by Krikor Boghossian on topic Load module in item
Hello Ariel,

You can try installing an extension called Modules Anywhere.
Another approach would be with custom coding. You can create a new module positions and with code in your template block it from appearing in categories.
if( JRequest::getCmd('option') == 'com_k2' && JRequest::getCmd('view') == 'item'):
// something
endif;

This check will only render if it is inside a K2 item.

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