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.

Previous and Next Problems

January 07, 2009 11:39am

Subscribe [0]
  • #1 / Jan 07, 2009 11:39am

    nullbreached

    116 posts

    I seem to be having an issue with some previous and next EE code features. When I use the following code:

    {exp:weblog:entries weblog="work" category="34" limit="1"}        
    
    <div class="padd_page"><h1>{title}</h1></div>  
    
    <div class="navigation detail">
    
    {exp:weblog:prev_entry weblog="work" category="34"}
    <div><a href="http://{path=%27v3/detail%27}" title="Previous Work"><</a></div>
    {/exp:weblog:prev_entry}
    
    {exp:weblog:next_entry weblog="work" category="34"}
    <div><a href="http://{path=%27v3/detail%27}" title="Next Work">></a></div>
    {/exp:weblog:next_entry}
    
    </div>

    It doesn’t limit the images I want to see to category 34. It will cycle through every image in my portfolio. Makes no sense. I believe I read the user guide correctly and I have moved the prev_entry and Next_entry out of the weblog entry tags to see if that was the problem. Still doesn’t work.

    Any ideas?

  • #2 / Jan 07, 2009 3:34pm

    nullbreached

    116 posts

    anyone?

  • #3 / Mar 09, 2009 7:48pm

    bmovie

    619 posts

    maybe this help…

    {exp:weblog:entries weblog="reading" limit="10"}
    {exp:weblog:prev_entry category="{categories}{category_id}{/categories}"}<a href="http://{path=">Previous</a>{/exp:weblog:prev_entry} |
    {exp:weblog:next_entry category="{categories}{category_id}|{/categories}"}<a href="http://{path=">Next</a>{/exp:weblog:next_entry}
    {/exp:weblog:entries}

    http://ellislab.com/forums/viewthread/69008/

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

ExpressionEngine News!

#eecms, #events, #releases