Logo of SermonSpeaker Extension Claim

Login Form

Include modulposition in specific category layout

More
5 years 8 months ago - 5 years 8 months ago #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: 5 years 8 months ago by Martini.

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

More
5 years 8 months ago #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:
dump($this->category, 'Category Object');

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.

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

More
5 years 8 months ago #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.107 seconds
Powered by Kunena Forum