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.

Segment_3 pulls entry, but cancels out other Channel calls?

February 18, 2011 12:57pm

Subscribe [2]
  • #1 / Feb 18, 2011 12:57pm

    Jav Vilchis

    8 posts

    The following code is in a template, mytemplate/subtemplate. The template can be accessed directly from mysite.com/index.php/mytemplate/subtemplate, but I want to take segment_3 and display a specific article such that mysite.com/index.php/mytemplate/subtemplate/myarticle will display the entry with url_title of ‘myarticle’.

    This works fine, but I can’t figure out why other channel calls in the same template are then canceled out (don’t show). Am I missing some small nuance? Do I need to cancel out the direct url_title call somehow?

    All help is greatly appreciated!

    <!-- call one :: No show -->
    {exp:channel:entries channel="mkting_msg" category="1" limit="1"}
            <h4>{title}</h4>
    <p>        {body}<br />
    {/exp:channel:entries}<br />
    <!-- /call one --></p>
    
    <p><!-- call two :: No show either --><br />
    {exp:channel:entries url_title="about_average_billing"}<br />
        {body}<br />
    {/exp:channel:entries}<br />
    <!-- /call two --></p>
    
    <p><!-- call three :: Displays properly --><br />
    {exp:channel:entries url_title="{segment_3}"}<br />
        {body}<br />
    {/exp:channel:entries}<br />
    <!-- /call three -->

    Forgive me for guideline errors, first post.

  • #2 / Feb 18, 2011 1:18pm

    Mark Bowen

    12637 posts

    Am I missing some small nuance?

    Indeed 😉

    Try adding in the dynamic=“no” parameter to your other channel tags and see if that helps.

    Best wishes,

    Mark

  • #3 / Feb 18, 2011 1:29pm

    Jav Vilchis

    8 posts

    Sick awesome. Thanks for the help Mark. That solved it (and the doc makes so much more sense now).

  • #4 / Feb 18, 2011 1:33pm

    Mark Bowen

    12637 posts

    No problem at all. Glad that got you sorted.

    Best wishes,

    Mark

  • #5 / Feb 18, 2011 5:25pm

    Ingmar

    29245 posts

    Excellent 😊 Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases