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/Previous Entry Linking Across Channels

December 01, 2010 12:56pm

Subscribe [1]
  • #1 / Dec 01, 2010 12:56pm

    vacquah

    355 posts

    I am hitting a wall specifying the correct path variable for navigating across channels.  I am looking to setup a previous/next navigation to browse through entries across 2 channels based on their entry date using the code below. The main issue seems to be how the path variable is specified - it doesn’t seem to be able to detect that the next or previous entry belongs to a different channel from what is shown ( in case where the next or previous entry is from another channel based on entry date.)

    Not sure if this is possible or do i need a plugin for this?

    <div class="previous">
    {exp:channel:prev_entry channel="stories|videos" status="open"}
    <a href="http://{path={segment_1}}" class="paginateprev">Previous Story</a>
    {/exp:channel:prev_entry}
    </div>
    
    
    <div class="next">
    {exp:channel:next_entry channel="stories|videos" status="open"}
    <a href="http://{path={segment_1}}" class="paginatenext">Next Story</a>
    {/exp:channel:next_entry}
    </div>
  • #2 / Mar 15, 2011 11:23pm

    vacquah

    355 posts

    Update: I am still looking for help with this. I posted this in the technical support forums but still haven’t been able to resolve.

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

ExpressionEngine News!

#eecms, #events, #releases