Hi there,
is there any elegant way to paginate through entries with urls like:
<a href="http://www.domain.com/section/yyyy/mm/{url_title}">http://www.domain.com/section/yyyy/mm/{url_title}</a>?
Regards
RSIDUS
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 30, 2010 6:11am
Subscribe [3]#1 / Dec 30, 2010 6:11am
Hi there,
is there any elegant way to paginate through entries with urls like:
<a href="http://www.domain.com/section/yyyy/mm/{url_title}">http://www.domain.com/section/yyyy/mm/{url_title}</a>?
Regards
RSIDUS
#2 / Dec 30, 2010 10:04am
Do you mean create links that look like that?
#3 / Dec 30, 2010 10:19am
Hi Sue,
I already have channel entries with this url structure. But I can’t paginate with the traditional next/previous entry linking method because of missing year and month in {path='SITE_INDEX'}.
Regards
RSIDUS
#4 / Dec 30, 2010 3:06pm
What version and build of EE are you using? Can you show us a little more of your code?
#5 / Dec 30, 2010 3:20pm
2.1.3 Build 20101220
{exp:channel:next_entry channel="press_releases_com" status="not closed"}
<a href="http://{path=media/pr}">{title}</a>
</exp:channel:next_entry}#6 / Dec 30, 2010 5:04pm
No, I’m afraid there is no pagination like that by default. You might be able to build something like it, but it would probably require a few lines of custom code. Let me know if you want to look into this and I can move this thread to the CodeShare Corner for additional community support.
#7 / Dec 30, 2010 5:12pm
A few lines of custom code sounds good enough to go on. Yes, do it so 😊
Thanks!
#8 / Dec 30, 2010 5:31pm
Moving as per request.