Keyword

show modules based on K2 view

  • Andy Saller
  • Andy Saller's Avatar Topic Author
  • Offline
  • New Member
More
12 years 1 week ago #104035 by Andy Saller
show modules based on K2 view was created by Andy Saller
hi,
I like to show/hide a module based on the "viewing mode" of K2

catalogue view of K2 -> show module
item detail view of K2 -> hide module

how can I do this?

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

More
12 years 1 week ago #104036 by Lefteris
Replied by Lefteris on topic Re: show modules based on K2 view
Hi. You need to make a check in your template and load the module position accordingly:
<?php if(JRequest::getCmd('view') == 'itemlist'): ?>
<jdoc:include type="modules" name="YOUR_POSITION_NAME"  />
<?php endif; ?>

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