- Posts: 21
- Thank you received: 0
Support for SermonSpeaker 4.x is canceled as it is for Joomla 2.5. I will gladly assist you with minor issues but I will not fix any bugs anymore in this releases.
The fix is to upgrade to SermonSpeaker 5.x and Joomla 3.x, which is better anyway.
The fix is to upgrade to SermonSpeaker 5.x and Joomla 3.x, which is better anyway.
Strange SEF URL with paging
- Michael Dunkle
-
Topic Author
- Offline
- Junior Member
-
Less
More
11 Dec 2012 15:54 #2798
by Michael Dunkle
Strange SEF URL with paging was created by Michael Dunkle
When using SEF URLs in SermonSpeaker 4.4, the Joomla paging is resulting in really strange results. When I use the next button to go page 2 (or later), I'm getting extra info in the SEF URL.
Previously I would get: /resources/sermons/sermons.html?start=20.
Now I'm getting: /resources/sermons/sermons/0/0.html?start=20
Why would this be happening? Is there anything that can be done to correct this?
Live site is at: www.trinityrcus.org/resources/sermons.html
Thanks,
Mike
Previously I would get: /resources/sermons/sermons.html?start=20.
Now I'm getting: /resources/sermons/sermons/0/0.html?start=20
Why would this be happening? Is there anything that can be done to correct this?
Live site is at: www.trinityrcus.org/resources/sermons.html
Thanks,
Mike
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
-
- Offline
- Administrator
-
11 Dec 2012 16:17 #2799
by Thomas Hunziker
Replied by Thomas Hunziker on topic Strange SEF URL with paging
What you see are the filters for year and month. This is needed to support the use of the archive module. Otherwise the filter selected via the archive module would reset each time you change the page.
So basically you see the result of a bugfix and you're not supposed to break it again
So basically you see the result of a bugfix and you're not supposed to break it again

Please Log in or Create an account to join the conversation.
- Michael Dunkle
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 21
- Thank you received: 0
11 Dec 2012 20:44 #2800
by Michael Dunkle
Replied by Michael Dunkle on topic Strange SEF URL with paging
Interesting... I can see what you're saying. How does that match w/ using the month & year drop-lists to filter the list on the page. At least on the initial page when changing the drop-lists, the URL isn't changed, which makes me think a session variable is being set. Does the paging not have the ability to use the session variable?
Thanks!
Mike
Thanks!
Mike
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
-
- Offline
- Administrator
-
11 Dec 2012 21:00 #2801
by Thomas Hunziker
Replied by Thomas Hunziker on topic Strange SEF URL with paging
The dropdown lists work a bit different. They're part of a form (POST) and the value is then stored in the session. The pagination and the module work with URL requests (GET).
If I remember right the issue was only when you filtered the list using the archive module. It worked initially but SermonSpeaker lost the filtering when you changed the page. I would have to dig into it again to see what exactly was the issue, I did this back in March.
You can of course try and remove the code and see if it works without it. The code is in the file
Delete this lines or comment them out and it should no longer add the year and month to the pagination URL.
If I remember right the issue was only when you filtered the list using the archive module. It worked initially but SermonSpeaker lost the filtering when you changed the page. I would have to dig into it again to see what exactly was the issue, I did this back in March.
You can of course try and remove the code and see if it works without it. The code is in the file
on line 26 & 27:/components/com_sermonspeaker/views/sermons/view.html.php
Code:
$this->pagination->setAdditionalUrlParam('year', $this->state->get('date.year'));
$this->pagination->setAdditionalUrlParam('month', $this->state->get('date.month'));
Please Log in or Create an account to join the conversation.
- Michael Dunkle
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 21
- Thank you received: 0
12 Dec 2012 06:22 #2802
by Michael Dunkle
Replied by Michael Dunkle on topic Strange SEF URL with paging
Thomas, you've got a much better memory than I do, although parts of what we discussed in March are starting to come back to me...
I tried removing the lines that you mentioned to test what would happen. The paging still works correctly if filtering from the drop-list is done. I believe this tracks back to the model's get of the year & month. However, the SEF URL becomes different when starting from the Archive module. I think having the URLs come up the same is more desirable, so I put the lines back in.
One thing I noticed while testing this. I'm getting either the menu alias or the view in the SEF URL twice ( www.trinityrcus.org/resources/sermons/se...2012/0.html?start=20 ). I'd much rather have just: www.trinityrcus.org/resources/sermons/2012/0.html?start=20 , if possible.
Do you think this can be done? In the same view you referenced, I noticed the view being added to the URL params on line 25:
If I could eliminate part of the redundancy, it would be great. Commenting the above line works for my main line ( www.trinityrcus.org/resources/sermons.html ), but the Archive module does not appear to use the same method. Is this actually something happening in the router? Since the Archive module uses a menu link and selects a category, is it possible to address this?
Thanks,
Mike
I tried removing the lines that you mentioned to test what would happen. The paging still works correctly if filtering from the drop-list is done. I believe this tracks back to the model's get of the year & month. However, the SEF URL becomes different when starting from the Archive module. I think having the URLs come up the same is more desirable, so I put the lines back in.
One thing I noticed while testing this. I'm getting either the menu alias or the view in the SEF URL twice ( www.trinityrcus.org/resources/sermons/se...2012/0.html?start=20 ). I'd much rather have just: www.trinityrcus.org/resources/sermons/2012/0.html?start=20 , if possible.
Do you think this can be done? In the same view you referenced, I noticed the view being added to the URL params on line 25:
Code:
$this->pagination->setAdditionalUrlParam('view', 'sermons');
If I could eliminate part of the redundancy, it would be great. Commenting the above line works for my main line ( www.trinityrcus.org/resources/sermons.html ), but the Archive module does not appear to use the same method. Is this actually something happening in the router? Since the Archive module uses a menu link and selects a category, is it possible to address this?
Thanks,
Mike
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
-
- Offline
- Administrator
-
12 Dec 2012 08:06 #2803
by Thomas Hunziker
Replied by Thomas Hunziker on topic Strange SEF URL with paging
I'll have a look at it today

Please Log in or Create an account to join the conversation.
Time to create page: 0.160 seconds