Keyword

Item page different from category page

  • kalixo
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 3 months ago #155429 by kalixo
Dear all,
I need some modules to be different on the category page(s) than on the item pages.
As far as I know, anything what is place on the category page is visible also on the item page - is there any way to style it different?

Looking forward to hear from you soon,
Kalixo

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #155442 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item page different from category page
There are ways to achieve this.
If you are using only a handful of items you can map these items into a menu item.
Otherwise you can use an extension like Modules Anywhere which allows you to have rules for your modules apart from menu items.
Finally you can do this in your template, have that position excluded from items and add a position specifically for K2 items.
This post will help you www.joomlaworks.net/forum/k2-en/32588-how-to-show-module-only-on-k2-item-page-only

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

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

More
8 years 3 months ago - 8 years 3 months ago #155530 by Alex B.
Replied by Alex B. on topic Item page different from category page

kalixo wrote: I need some modules to be different on the category page(s) than on the item pages.
As far as I know, anything what is place on the category page is visible also on the item page - is there any way to style it different?


Yes, you are right. When assigning a module to a category menu item , this module will show up on all item pages of this category as well. That's not what is sometimes needed.

I worked with RAXO All-mode K2 - Powerful content display module for K2 which has a function for this case.
When I enable "Hide on article pages" parameter in the module settings, it shows up on category page, but doesn't display on item pages.
Is it what you are looking for?

This module uses this code to define page type and uses it as a condition for module display.
$input = JFactory::getApplication()->input;
if ($input->get('option') == 'com_k2' && $input->get('view') == 'item')
{
	return;
}
You can apply a similar code in the module you want.
Last edit: 8 years 3 months ago by Alex B..

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

  • kalixo
  • kalixo's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 3 months ago #155550 by kalixo
Replied by kalixo on topic Item page different from category page
Thank you, both of you!
I'll work on that!

Have a nice day,
Best regards!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #155578 by Krikor Boghossian
Replied by Krikor Boghossian on topic Item page different from category page
You 're welcome :)

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