Logo of SermonSpeaker Extension Claim

Login Form

All sermons link

More
4 months 3 weeks ago #7365 by antt7
All sermons link was created by antt7
How to add link in Sermonspeaker module Horizontal layout to show all sermons (link to sermons in category, menu item)?
Is this correct?
<a href="<?php echo $params->get('custom_links');?>" >Show all</a>

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

More
4 months 3 weeks ago #7366 by Thomas Hunziker
Replied by Thomas Hunziker on topic All sermons link
Since the SermonSpeaker module doesn't have a parameter named "custom_links", that would do nothing.
I assume you want to do that in your override. There you can just create your own link like <a href="<?php echo JRoute::_('index.php?option=com_sermonspeaker&view=sermons&catid=123&Itemid=456);?>" >Show all</a>

The catid and Itemid are optional, but I would at least add the Itemid. The numbers are placeholders, you need to replace them with the ID of the category (catid) or menu item (Itemid).

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
4 months 3 weeks ago #7367 by antt7
Replied by antt7 on topic All sermons link
I have 3 different modules in one page. They show sermons from 3 different categories. I cannot add category id or itemid, but in settings of module there are options to Select menu entry and category.
How these links write in code?
In module Latest sermons i found link
<a href="<?php echo JRoute::_($link); ?>" >Show all</a>
but it does not work in Sermonspeaker module
Thanks

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

More
4 months 3 weeks ago #7368 by Thomas Hunziker
Replied by Thomas Hunziker on topic All sermons link
The SermonSpeaker module isn't meant to directly link to a sermons page. That's what the "latest sermons" module is intended for.
The menuitem setting is used for the speaker/series/categories links in the module. If you use that one for a link to the sermons page, you could mess up the other links.
But if you really want to use that parameter, you can fetch it using "$params->get('menuitem');"

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
2 months 1 week ago #7414 by antt7
Replied by antt7 on topic All sermons link

antt7 wrote: I have 3 different modules in one page. They show sermons from 3 different categories. I cannot add category id or itemid, but in settings of module there are options to Select menu entry and category.
How these links write in code?


I cannot find answer. Answer above does not work.

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

More
2 months 1 week ago #7416 by Thomas Hunziker
Replied by Thomas Hunziker on topic All sermons link
What exactly did you try?
And did you try it with the latest sermons module instead?

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.

Time to create page: 0.211 seconds
Powered by Kunena Forum