ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Paginate?

August 28, 2007 3:53pm

Subscribe [1]
  • #1 / Aug 28, 2007 3:53pm

    ITCC

    32 posts

    I’m working on a news section for a site which is constructed as follows:

    I have a “news stories” splash page with perma-links for each news story.  These links are generated dynamically whenever a new entry in the “news” weblog is published.  They navigate to a “news items” template that displays the full “news” weblog entry.

    I also have a (non-perma) link on the splash page to the “news items” template.  Being created by a non-perma link, this time the “news items” template displays all of the entries in the “news” weblog in the “news items” template.

    What I’d like to do is, on the pages that display only one “news” entry, have a set of links at the bottom of the page that will navigate to the next and the previous “news” entry. 

    The “paginate” parameter placed in the weblog tag causes “Page 1 of 1” to appear on the single entry pages.  However, the correct links appear for the multi-entry page.

    Can I use the “paginate” parameter to successfully enable navigation between single-entry pages?

    I will keep researching this, but if anyone can help, I would appreciate it.

  • #2 / Aug 28, 2007 4:30pm

    ITCC

    32 posts

    Solved!

    {exp:weblog:prev_entry weblog="news"}
    Previous
    {/exp:weblog:prev_entry}
    {exp:weblog:next_entry weblog="news"}
    Next
    {/exp:weblog:next_entry}

    :cheese:

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases