- Posts: 2
COMMUNITY FORUM
Modules in Item View
- Ian Saynor
- Topic Author
- Offline
- New Member
Less
More
11 years 3 months ago #114650
by Ian Saynor
Modules in Item View was created by Ian Saynor
Does anyone know how I can get a module to display in the item view only, and not in the category view. I want just a gridview of all the articles in category view and then when you click on the item it takes you into another page, which has additional modules attached to the document I'm in.
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
11 years 3 months ago #114651
by Yiota
Replied by Yiota on topic Re: Modules in Item View
This has already been answered in this topic: getk2.org/community/New-to-K2-Ask-here-first/178481-How-to-show-module-only-on-k2-item-page-only
Please, search forum before posting.
Please, search forum before posting.
Please Log in or Create an account to join the conversation.
- Ian Saynor
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
11 years 3 months ago #114652
by Ian Saynor
Replied by Ian Saynor on topic Re: Modules in Item View
Ok I apologise. I did already see that article and was hoping for a simpler solution, since I don't want to start messing about with files I don't understand. And from what I see, that article does the complete opposite of what I want to do.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 3 months ago - 11 years 3 months ago #114653
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Modules in Item View
The code snippet you actually want is the one @Krikor Boghossian has written at the end of the topic.
Make sure to also include the $option and $view variables if not already defined in your template.
Make sure to also include the $option and $view variables if not already defined in your template.
I am sorry the code should be
<?php if($option=='com_k2' && $view=='item'): ?>
Remove one set of parenthesis and the exclamation mark.
This code is for your template's index.php not for a module.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- George Nasis
- Offline
- Elite Member
Less
More
- Posts: 214
11 years 3 months ago #114654
by George Nasis
Replied by George Nasis on topic Re: Modules in Item View
Hallo Ian
If you don`t want to mess with php and the core of k2, you can use a module calles "Advanced Module Manager". It has too many optios about where you want your module to be assigned incule categories and items.
Regards
If you don`t want to mess with php and the core of k2, you can use a module calles "Advanced Module Manager". It has too many optios about where you want your module to be assigned incule categories and items.
Regards
Please Log in or Create an account to join the conversation.