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" URI's assigned to entries and recoreded by module but when page is requested the wrong content is displayed

January 21, 2012 11:45pm

Subscribe [2]
  • #1 / Jan 21, 2012 11:45pm

    hothousegraphix

    851 posts

    While adding a new entry to the “Pages” module I’ve just discovered that if I visit a URL to one of the “pages” I created earlier (which shares the same template) the content displayed is for the entry I just created and not what should be displaying.

    The module has correctly recorded the 2 page URI’s I have assigned to my page template.

    /teacher/biography
    /teacher/in-the-classroom (newly added entry whose content is displaying for both entries)

    My template code looks like

    {exp:channel:entries 
    channel="page"
    status="Open"
    show_pages="only"
    disable="categories|member_data|pagination"
    require_entry="yes"
    limit="1"}

    If I remove the limit parameter I see both entries display in my template as I’d expect with a non-pages set-up.

    Not sure if I’m doing something incorrectly or if there is a problem.

    Running - v2.3.1 - Build: date 20111017

     

  • #2 / Jan 22, 2012 5:45pm

    hothousegraphix

    851 posts

    Any possible insight would be welcome. I could be using the Pages Module incorrectly.

    To be quite honest with you, I’ve never used it before.

    I’ve removed any addons that I though might have an opportunity to conflict and this has had not effect.

    Am I missing something with the tag? Is there a parameter other than show_pages=“only” that I need to employ?

  • #3 / Jan 22, 2012 9:20pm

    hothousegraphix

    851 posts

    Clearly an issue with the parameter values I had selected.

    Setting the “show_pages” parameter to yes corrected the issue I was experiencing.

  • #4 / Jan 23, 2012 12:52pm

    Shane Eckert

    7174 posts

    Hello Michael,

    Thank you for posting in the forums.

    Great job working this out. Sounds like you solved the problem.

    If you have any more questions or concerns we will be here.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases