- Posts: 92
- Thank you received: 0
Support for SermonSpeaker 5.x is in bugfix mode only, the same as it is for Joomla 3.10.
I will not add any new features to this releases.
Please upgrade to SermonSpeaker 6.x and Joomla 4.x, which is better anyway.
I will not add any new features to this releases.
Please upgrade to SermonSpeaker 6.x and Joomla 4.x, which is better anyway.
Most popular sermons
22 Dec 2014 18:40 - 22 Dec 2014 18:47 #4997
by antt7
Most popular sermons was created by antt7
Last edit: 22 Dec 2014 18:47 by antt7.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
-
- Offline
- Administrator
-
22 Dec 2014 21:26 #4998
by Thomas Hunziker
Replied by Thomas Hunziker on topic Most popular sermons
You can't really integrate the sermons into another carousel due to the way the data is retrieved. I would have to make a copy of the module.
What you can do however is creating a new layout for the "Latest Sermons" module which shows the sermons in a carousel or whatever you like. The module already can fetch the data you need. You just need to display it different.
What you can do however is creating a new layout for the "Latest Sermons" module which shows the sermons in a carousel or whatever you like. The module already can fetch the data you need. You just need to display it different.
Please Log in or Create an account to join the conversation.
27 Dec 2014 13:45 #5004
by antt7
Replied by antt7 on topic Most popular sermons
Could you help me? How display sermons in horizontal mode?Thomas Hunziker wrote: new layout for the "Latest Sermons" module which shows the sermons in a carousel
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
-
- Offline
- Administrator
-
27 Dec 2014 14:35 #5005
by Thomas Hunziker
Replied by Thomas Hunziker on topic Most popular sermons
The basics of creating an alternative layout is decribed here:
www.ostraining.com/blog/joomla/alternative-layouts-for-modules/
or here:
docs.joomla.org/Layout_Overrides_in_Joom..._Alternative_Layouts
In that new layout, you just change the HTML so it fits what you need. The data is shown using PHP code like this: <?php echo $row->title; ?> which would display the title of the sermon.
Or you could maybe even use the blog layout and apply some CSS rules so the containers display horizontal instead of vertical. Should work in theory if you define the "latestermons_entry..." containers as inline-blocks. But I'm not that good with design and CSS stuff.
In that new layout, you just change the HTML so it fits what you need. The data is shown using PHP code like this: <?php echo $row->title; ?> which would display the title of the sermon.
Or you could maybe even use the blog layout and apply some CSS rules so the containers display horizontal instead of vertical. Should work in theory if you define the "latestermons_entry..." containers as inline-blocks. But I'm not that good with design and CSS stuff.
The following user(s) said Thank You: antt7
Please Log in or Create an account to join the conversation.
27 Dec 2014 20:22 - 27 Dec 2014 20:24 #5006
by antt7
Replied by antt7 on topic Most popular sermons
Thanks for your answer.
I have changed the line
to
and now I can display most popular sermons in horizontal mode.
One more question. Is it difficult to create pagination or carousel?
Thanks.
I have changed the line
Code:
<div class="latestsermons_entry<?php echo $i; ?>">
Code:
<div class="latestsermons_entry<?php echo $i; ?>" style="display:inline-block; margin:0 5px; width:45%; vertical-align:top;">
One more question. Is it difficult to create pagination or carousel?
Thanks.
Last edit: 27 Dec 2014 20:24 by antt7.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
-
- Offline
- Administrator
-
27 Dec 2014 22:29 #5009
by Thomas Hunziker
Replied by Thomas Hunziker on topic Most popular sermons
Pagination in a module is very hard and not without deeper knowledge of Joomla.
A carousel however should be quite simple. Joomla has already some integrated methods for displaying a carousel based on Bootstrap. See api.joomla.org/cms-3/classes/JHtmlBootst...html#method_carousel which should load the needed JavaScript. See getbootstrap.com/2.3.2/javascript.html#carousel for the Bootsrap documentation.
However I never used it myself and thus can't guide you more than that.
A carousel however should be quite simple. Joomla has already some integrated methods for displaying a carousel based on Bootstrap. See api.joomla.org/cms-3/classes/JHtmlBootst...html#method_carousel which should load the needed JavaScript. See getbootstrap.com/2.3.2/javascript.html#carousel for the Bootsrap documentation.
However I never used it myself and thus can't guide you more than that.
Please Log in or Create an account to join the conversation.
Time to create page: 0.185 seconds