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.

channel:entries truncated

May 09, 2013 4:42pm

Subscribe [2]
  • #1 / May 09, 2013 4:42pm

    web@sewanee

    18 posts

    This seems simple, but confounding.

    {exp:channel:entries status="sub-Navigation" site="offices" channel="{segment_1}" sort="asc"}
    {if segment_2 == url_title}<li><em><a href="http://{site_url}{channel_name}/{url_title}">{title}</a></em></li>
    {if:else}<li><a href="http://{site_url}{channel_name}/{url_title}">{title}</a></li>
    {/if}
    {/exp:channel:entries}

    Basically, I am just grabbing the above entries and, if one of them happens to be the second segment of the URL, I am wrapping it in an <em>. However, when there is a second segment present, I am only getting the current second segment entry, as opposed to all of the entries I get when there is no second segment present.

    I have tried removing the conditional and it still only displays the one entry when there is a second segment present.

    Any ideas? Thanks!

  • #2 / May 13, 2013 3:15pm

    web@sewanee

    18 posts

    This has got to be relatively easy. Does anyone have any idea as to why it only shows the active entry?

  • #3 / May 13, 2013 3:26pm

    Boyink!

    5011 posts

    http://www.train-ee.com/courseware/free-tutorials/comments/dynamic-off-explained

    I posted that for EE1, but the concept carries to EE2 just with the parameter now “dynamic=“no”.

  • #4 / May 13, 2013 3:45pm

    web@sewanee

    18 posts

    Great. Thanks! That’s all I needed.

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

ExpressionEngine News!

#eecms, #events, #releases