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.

trouble with global include gaining access to content

February 21, 2010 2:32pm

Subscribe [2]
  • #1 / Feb 21, 2010 2:32pm

    fsp

    5 posts

    hello,

    i’m not sure how to put this succinctly, but basically i have my site set up so that there is a sidebar global include on all of my web pages that shows my three most recent projects added to my projects weblog. my code for displaying these most recent projects is:

    <ul>
                                    {exp:weblog:entries weblog="projects" limit="3" disable="categories|category_fields|member_data|trackbacks|pagination"}
                           <li>
                                <a href="http://{title_permalink=projects/project}"><span class="year">{proj-year}</span> {title}</a>
                          </li>
                           {/exp:weblog:entries}
                    </ul>

    This works great until you actually click on an individual project link, which takes you to that project’s page, after which point my sidebar will only show that single project, and not the list of all my most recent projects. i know it’s because all the other projects are being filtered out of the weblog=“projects” results since i’m on a single project page—how can i make it so my sidebar include still has access to all the project data in my projects weblog?

    check these urls to see what i’m talking about, paying attention to the left-hand sidebar with the heading ‘RECENT PROJECTS’:

    http://www.fsp.fm/index.php/projects/
    http://www.fsp.fm/index.php/projects/project/soft_sketch/

    thanks!

  • #2 / Feb 21, 2010 6:18pm

    Greg Salt

    3988 posts

    Hi fsp,

    Try adding dynamic=“off” to your entries tag.

    Cheers

    Greg

  • #3 / Feb 21, 2010 7:19pm

    fsp

    5 posts

    yuss, that worked!

    thank you 😊

    s

  • #4 / Feb 21, 2010 7:21pm

    Greg Salt

    3988 posts

    Hi fsp,

    Glad that’s sorted. Please post back if you have further questions or problems.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases