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/Prev within Category

December 07, 2008 1:52am

Subscribe [1]
  • #1 / Dec 07, 2008 1:52am

    Cam

    5 posts

    I’ve search and I’ve read most of the posts on this. However there does not seem to be a definite answer.

    Is Prev & Next entry within a Category not officially supported? See: http://ellislab.com/forums/viewreply/416497/

    The User guide doesn’t give an answer except for Simon Cox’s comment: http://expressionengine.com/docs/modules/weblog/entry_linking.html#457

    Is this the correct way to have prev & next entry within a category?

  • #2 / Dec 07, 2008 8:07am

    Cam

    5 posts

    Found this fix here: http://ellislab.com/forums/viewreply/404985/

    {exp:weblog:prev_entry category="{categories}{category_id}|{/categories}"}<a href="http://{path=" class="prev"><span>Prev Entry</span></a>{/exp:weblog:prev_entry}
    {exp:weblog:next_entry category="{categories}{category_id}|{/categories}"}<a href="http://{path=" class="next"><span>Next Entry/span></a>{/exp:weblog:next_entry}

    That works within weblog:entries

    So now how do you make a single entry page know whether you’ve come from a category page or not?

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

ExpressionEngine News!

#eecms, #events, #releases