Page 1 of 1

Create a "Next Blog Entry" link

Posted: Thu Apr 19, 2012 4:27 pm
by micahgodbolt
Is there a way to create a "next blog entry" link? I know that I could use {module_action_link} to create a link to another CGblog entry, but how would I know the articleid to use, as I can't assume that the entries go sequentially (could be gaps, or needing to loop back to the front).

Has anyone done this successfully?

Re: Create a "Next Blog Entry" link

Posted: Thu Apr 19, 2012 6:33 pm
by Rolf

Re: Create a "Next Blog Entry" link

Posted: Thu Apr 19, 2012 6:37 pm
by micahgodbolt
That's a monster UDT! I was thinking it might require jumping into the database and doing some tests...thanks for saving me all that work!

Re: Create a "Next Blog Entry" link

Posted: Thu Apr 19, 2012 8:53 pm
by Gregor
The good news is, if you copy/paste my UDT to your own site, modify the lines referring to pretty url's (look for logbook), you are done :)

@Rolf: thanks for referring :)

Gregor