- Posts: 29
- Thank you received: 0
Include modulposition in specific category layout
29 Jan 2013 15:47 - 30 Jan 2013 11:25 #2962
by Martini
Include modulposition in specific category layout was created by Martini
Hi,
first of all: thank you so much for this great components and the capabilities of these.
I'm thinking of including a moduleposition in the sermons list - and only this list.
I've already assigned a module to the menuitem of the list, but the module is also shown in the sermon-details-view and the speakers-view...
So I want to add a {loadposition xx}-tag with a 'content-prepare'int the sermons-layout.
Because the sermons-layout is used by different categories I want to add a constraint to the {load}-tag.
Is there a possibility to get the category-number and maybe also the page number of the processed list?
first of all: thank you so much for this great components and the capabilities of these.
I'm thinking of including a moduleposition in the sermons list - and only this list.
I've already assigned a module to the menuitem of the list, but the module is also shown in the sermon-details-view and the speakers-view...
So I want to add a {loadposition xx}-tag with a 'content-prepare'int the sermons-layout.
Because the sermons-layout is used by different categories I want to add a constraint to the {load}-tag.
Is there a possibility to get the category-number and maybe also the page number of the processed list?
Last edit: 30 Jan 2013 11:25 by Martini.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
29 Jan 2013 16:16 #2964
by Thomas Hunziker
Replied by Thomas Hunziker on topic Include modulposition in specific category layout
Hi Martini
The category number is available in the category object:
A nice way to check the content of the various variables, arrays and objects is to use the Joomla extension " JDump ". With this you can use the following code in your layout to see what is stored in a given variable:
The category number is available in the category object:
The current page number is in the pagination object:$this->category->id
$this->pagination->pagesCurrent
A nice way to check the content of the various variables, arrays and objects is to use the Joomla extension " JDump ". With this you can use the following code in your layout to see what is stored in a given variable:
Code:
dump($this->category, 'Category Object');
Please Log in or Create an account to join the conversation.
30 Jan 2013 11:26 #2968
by Martini
Replied by Martini on topic Include modulposition in specific category layout
perfect,
works now with this hint exactly as imagined
works now with this hint exactly as imagined
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds