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.

Help with channel display in footer list

December 07, 2010 12:00pm

Subscribe [2]
  • #1 / Dec 07, 2010 12:00pm

    brianfrick

    8 posts

    I have a site-wide footer that needs to include a list of sponsors of our non-profit website.  I created the sponsors channel and templates and edited the footer so that the sponsors’ name and href are pulled dynamically as so:

    <h4>Champions</h4>
    <p><ul><br />
        {exp:channel:entries channel="sponsors" category="18" orderby="title" sort="asc"}<br />
        <li><a href="http://{title_permalink=sponsors/show}">{title}</a></li><br />
        {/exp:channel:entries}<br />
    </ul>

    However, when I go to a sponsor’s page at {site_url}/sponsors/show/sponsorname, the unordered lists will go blank and only show the
    sponsor whose page I’m currently on.

    You can see the index page at this site where the footer behaves correctly; however, if you click on any of the sponsors (bottom, green div), you’ll see that the only sponsor that remains in the footer is the one you just clicked.

    How can I re-code my footer so that it *always* displays the full list of sponsors?

  • #2 / Dec 07, 2010 12:25pm

    Paul Stone

    97 posts

    Hi Brian,

    Think you’ll need to put dynamic=“no” (or dynamic=“off” if you’re using EE 1.x) in the tag:

    {exp:channel:entries channel="sponsors" category="18" orderby="title" sort="asc" dynamic="no"}

    Not having that in, as you have at the moment, means that it uses the last segment in your URL (sponsorname) to filter the entries that it retrieves.

    more info here: http://ellislab.com/expressionengine/user-guide/modules/channel/parameters.html#par_dynamic

    Hope that helps,
    Paul.

  • #3 / Dec 07, 2010 1:06pm

    brianfrick

    8 posts

    Brilliant.  Many thanks!  I’m new to this, so forgive my ignorance.

  • #4 / Dec 07, 2010 1:13pm

    Paul Stone

    97 posts

    No worries.  I’ve been using EE for ages and still routinely forget about dynamic and wonder why everything isn’t working.

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

ExpressionEngine News!

#eecms, #events, #releases