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.

Next Entry Tag / Previous Entry Tag (video page navigation help)

June 26, 2007 12:47pm

Subscribe [1]
  • #1 / Jun 26, 2007 12:47pm

    TT

    35 posts

    Hello,

    I am trying to create navigation for a video page. The template pulls from one blog, each blog post has a different video and metadata for each company in the video.

    http://www.newmediasynergy.com/index.php/site/video_portal/

    I am trying to create navigation for this page so you can sort through different companies.

    I placed this code inside of the Templatate in between the weblog code and it does not work?

    {exp:weblog:next_entry}

    Next entry: {title}

    {/exp:weblog:next_entry} {exp:weblog:prev_entry}

    Previous entry: {title}

    {/exp:weblog:prev_entry}


    How else can I create navigation for a page that only has one single entry per page?

    Any Ideas?

    Thx, Tim

  • #2 / Jun 26, 2007 1:05pm

    Robin Sowell

    13255 posts

    Ah- you’re running into two issues.  First- the next/prev nagivation should be outside of the weblog tags.  They’re independent.  But the bigger problem- they only work on single entry pages- those are pages that have a url title or an entry id in the url.  That ‘single entry’ indicator in the url is what allows the next/prev tag to know what page you’re currently on- and figure out what the next and prev. pages should be.

    I personally prefer to use the single entry pages- with a url title or entry id in them- for this type of display.  The big advantage- the url won’t change.  Good for linking and SEO.

    But there is another type of pagination- standard weblog tag pagination- that goes INSIDE the weblog tag.  This is most frequently used on multi-entry pages.  But if you put a limit=“1” in the weblog tag parameters?  It will display only a single entry- and it will work in the above situation.

    Like I say- I’d probably change things up so that I’m actually doing this on a true single entry page- due to SEO and linking concerns.  But from a functional perspective- the second option will work the way you’ve got things setup now.

    Make sense?

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

ExpressionEngine News!

#eecms, #events, #releases