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.

Single entry category bug?

February 15, 2011 6:47am

Subscribe [2]
  • #1 / Feb 15, 2011 6:47am

    leeaston

    634 posts

    v2.1.3 Build: 20101220

    http://ehclients.com/index.php/bedroom/test/solid-pine/solid-pine-4-drawer-jumper-chest

    Segment 3 is a fake segment, although it also happens to be the name of the category the entry is in.

    {exp:channel:entries channel="bedroom" url_title="{segment_4}" status="open|closed|featured|sale"}
    {title}<br>}
    {/exp:channel:entries}

    This code dosen’t work if the entry is in a category who’s category_url_title is the same as another category_url_title in a different category group.

    Should it, I think it should?

    If I change the name of the category_url_title that the entry is in, to something that isn’t duplicated in another category group, then the code works.

    Thanks
    Lee

  • #2 / Feb 15, 2011 8:44am

    You’ll probably need to add the dynamic=“no” parameter, to make the channel:entries tag not determine the entry automatically from the URL.

  • #3 / Feb 15, 2011 8:47am

    leeaston

    634 posts

    Thank you - I’m having a single brain cell day!

  • #4 / Feb 15, 2011 3:55pm

    Ingmar

    29245 posts

    No worries, glad to see you’re all set. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases