Create a "Next Blog Entry" link

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
micahgodbolt
Forum Members
Forum Members
Posts: 149
Joined: Thu Jul 29, 2010 11:09 pm
Location: Portland, OR

Create a "Next Blog Entry" link

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Create a "Next Blog Entry" link

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
micahgodbolt
Forum Members
Forum Members
Posts: 149
Joined: Thu Jul 29, 2010 11:09 pm
Location: Portland, OR

Re: Create a "Next Blog Entry" link

Post 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!
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am
Location: The Netherlands

Re: Create a "Next Blog Entry" link

Post 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
Post Reply

Return to “Modules/Add-Ons”