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.

Conditional Nav - Not Working

August 02, 2011 10:36pm

Subscribe [3]
  • #1 / Aug 02, 2011 10:36pm

    PXLated

    1800 posts

    this has got to be something simple but for some reason I can’t see it.
    Shouldn’t this work…
    —————
    {exp:channel:entries channel="content1" status="open|pending" orderby="entry_id" sort="asc" disable="categories|custom_fields|member_data|pagination"}
      {if segment_3 == url_title}{title}

      {if:else}< a href =”#”>{title}</ a>
    {/if}
    {/exp:channel:entries}
    —————
    What happens is if segment_3 does in fact == segment_3 it lists just that one entry instead of all of them with the one that does mach highlighted. If I leave segment_3 blank, it lists all entries as a link as specified in the else statement.
    What I need it to do is list them all but highlight the one that matches segment_3


    Any help/insight’s greatly appreciated.

  • #2 / Aug 02, 2011 10:39pm

    Dave @ Exp:resso

    465 posts

    Well since you don’t have dynamic=“no”, EE is assuming that you are trying to display a single entry. Adding dynamic=“no” should fix this issue 😊

  • #3 / Aug 02, 2011 10:46pm

    PXLated

    1800 posts

    D A N G

    If you check my old forum posts, I was the go to guy for the “you forgot dynamic=“no” parameter” response.

    Can’t believe I blew that!

    Thanks

  • #4 / Aug 02, 2011 10:54pm

    Dave @ Exp:resso

    465 posts

    Haha happens to the best of us!

  • #5 / Aug 02, 2011 11:17pm

    PXLated

    1800 posts

    Embarrassing :-(

    If there’s one parameter I should never forget, it’s that one since 85% of the pages on my sites use it - Geeeeez

  • #6 / Aug 03, 2011 10:28am

    Dan Decker

    7338 posts

    PXLated,

    You offered me advice on many occasions when I was fresh 😉

    I’m gonna close this one out. As always, you can start a new thread if you ever need assistance.

    Best,

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

ExpressionEngine News!

#eecms, #events, #releases