Include modulposition in specific category layout

More
29 Jan 2013 15:47 - 30 Jan 2013 11:25 #2962 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?
Last edit: 30 Jan 2013 11:25 by Martini.

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

More
29 Jan 2013 16:16 #2964 by Thomas Hunziker
Hi Martini

The category number is available in the category object:

$this->category->id

The current page number is in the pagination object:

$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.

More
30 Jan 2013 11:26 #2968 by Martini
perfect,
works now with this hint exactly as imagined :)

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

Time to create page: 0.290 seconds
Powered by Kunena Forum