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.

Prev/Next entry linking with multiple channels

December 14, 2011 10:46am

Subscribe [3]
  • #1 / Dec 14, 2011 10:46am

    Dan CRYSTAL

    4 posts

    Hi,

    This may be an obscure question and I hope there is a better way of going about this.

    I am trying to link between entries using the exp:channel:prev_entry and exp:channel:next_entry tags which works fine when my entries are in the same channel.

    I have an instance where I am using more than one channel linked to a single category group (for design and templating reasons, the additional channel corresponds to additional templates as they differ greatly in design) and I want to be able to link through the entries as described above. Even though I am using the multiple channel functionality within the prev/next tag and I am using the category group ID it doesn’t seem to work when viewing the entries in the additional channel.

    Am I doing something completely wrong here?

  • #2 / Dec 15, 2011 3:26pm

    Kevin Smith

    4784 posts

    Hi Dan,

    Welcome to the forums! I’m not able to reproduce what you’re talking about on my installations. Would you mind sharing the code you’re using for prev/next entry linking? Also, are you using this code on a template meant to display a single entry? Also, I have a feeling I know what you’re expecting to see, but what are you seeing instead? Does it only link within a single channel? Does it not link at all?

  • #3 / Dec 16, 2011 4:09am

    Dan CRYSTAL

    4 posts

    Hi Kevin,

    The code in questions is as follows:

    {exp:channel:next_entry channel="about|about_team" category_group="6"}
       <a href="http://{path=about}">{title} ></a>
    {/exp:channel:next_entry}
                        
    {exp:channel:prev_entry channel="about|about_team" category_group="6"}
       <a href="http://{path=about}">< {title}</a>
    {/exp:channel:prev_entry}

    The template does display a single entry by the use of a category ID in the entries tag (of which I am determining, with a bit of SQL, the category ID from a category URL title in the URL). However this is a direct copy of the other templates where this works fine. It seems to not work when I use multiple channels?

    Many thanks for your help on this.

    Dan

  • #4 / Dec 21, 2011 12:03am

    Kevin Smith

    4784 posts

    Dan, I’m unable to reproduce the issue you’re experiencing here. Are you running the latest version ExpressionEngine? If not, you may be running up against a feature that was added since the version you’re currently running.

    Be on the lookout for an email from me. I’d like to take a first-hand look at this.

  • #5 / Dec 26, 2011 1:09pm

    Kyle Cotter

    730 posts

    Hey Dan,

    Just wanted to check in and see if you got Kevin’s email. Let me know if you didn’t, and need me to resend it.

    Thanks.

  • #6 / Jan 07, 2012 9:37am

    Dan CRYSTAL

    4 posts

    Hi Kyle/Kevin,

    I didn’t receive an email from Kevin in the end. I still have the issue and I really need to resolve it one way or another.

    Regards
    Dan

  • #7 / Jan 13, 2012 4:57pm

    Kyle Cotter

    730 posts

    Hey Dan,

    I’ve resent the email to your email address on file with your ExpressionEngine account.

    Let me know once you’ve received it.

    Thanks.

  • #8 / Jan 14, 2012 5:30am

    Dan CRYSTAL

    4 posts

    Hi Kyle,

    Many thanks for re-sending that. I have filled in as requested and I have also sent an email directly to you with some further instructions about the install and where the problem is.

    I look forward to hearing from you.

    Thanks
    Dan

  • #9 / Jan 23, 2012 4:53pm

    Kevin Smith

    4784 posts

    After working with Dan in private, we determined the reason EE wasn’t displaying prev/next links on certain pages. On those pages where the links weren’t appearing, a separate template was being used and displaying only a single entry from a unique Channel without having a URL title in the URI. Without the URL title in the URI, the prev/next tags couldn’t determine which entry they were on, and therefore couldn’t display the correct previous and next entries!

    If anyone else is experiencing similar issues and can’t find a resolution with the explanation above, please click the button below to open up a new, related thread.

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

ExpressionEngine News!

#eecms, #events, #releases