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.

Pages Module - Always showing newest entry

July 23, 2007 4:22pm

Subscribe [1]
  • #1 / Jul 23, 2007 4:22pm

    darylh

    26 posts

    I’m using the Pages module in EE 1.6.

    I have several different static pages that are using the same template to render.  They also have similar paths, ie:
    /about/contact
    /about/bios

    Regardless of which url I use, they all render the latest entry.  If I remove the limit=‘1’, then they are all rendered. 

    {exp:weblog:entries weblog="static_pages" show_pages="only" limit="1" }
    {embed="inc/allHeader"}
    <div id="content">
       {embed="inc/aboutSidebar"}
    
       {!-- MAIN CONTENT --}
       <div id="content-main">
       <h5>{page_small_heading}</h5>
    <p>   <h1>{page_main_heading}</h1></p>
    
    <p>{page_body}</p>
    
    <p>{!-- END MAIN CONTENT --}   <br />
       </p>
    
    <p>   </div><br />
       <br />
       {CLEAR}<br />
    </div></p>
    
    <p>{embed="inc/allFooter"}</p>
    
    <p>{/exp:weblog:entries}

  • #2 / Jul 23, 2007 4:42pm

    Lisa Wess

    20502 posts

    Hi, Daryl,

    Can you try with a simplified version of the tag?

    {exp:weblog:entries weblog="static_pages"  limit="1"}
    {title}
    {/exp:weblog:entries}

    also, what version and build of EE are you on, and are you using any .htaccess tricks?

  • #3 / Jul 23, 2007 5:58pm

    darylh

    26 posts

    I stripped it down to the simple example you suggested, and it works.

    It seems that the show_pages=‘only’ overrides the expected behavior (even with a require_entry=“yes”).

  • #4 / Jul 25, 2007 2:12pm

    Lisa Wess

    20502 posts

    Hi, Daryl—

    Sorry about the delay, but yes, show_pages removes the dynamic nature of the tag, so this is expected behavior.

  • #5 / Jul 25, 2007 3:00pm

    Lisa Wess

    20502 posts

    Hi, Daryl -

    If you are interested in seeing the behavior of show_pages changed, then please go ahead and post a detailed feature request.  Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases