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.

Footer embedded entries disappear on single entry page

July 17, 2012 4:38am

Subscribe [2]
  • #1 / Jul 17, 2012 4:38am

    Iceberg Creative

    21 posts

    Hello.

    I have a footer template that I embed on different page templates. One section of the footer displays a list of my latest news articles from the channel ‘News’. When this footer is displayed on the ‘single news story’ page, for example, only the story being currently viewed shows-up in the footer.

    When I am on a different single entry page for a different channel, in this case ‘Case Studies’, then nothing at all shows-up in the news articles in the footer.

    The tag pairs are both separate and both open and closed in their respective areas on the templates.

    What should I be looking for to resolve this?

    I appreciate any help :0)

    Thanks.

  • #2 / Jul 17, 2012 7:05am

    You’re after the dynamic=“no” parameter. In your footer file, for your news entries, add that paramter.

    E.g.

    {exp:channel:entries channel="news" dynamic="no"}
    {title}
    {/exp:channel:entries}

    dynamic=“no” tells EE to not set any parameters based on what’s on the URL, which is why you’re seeing odd behaviour across different pages.

  • #3 / Jul 17, 2012 7:18am

    Iceberg Creative

    21 posts

    Brilliant! Thank you very much. That worked perfectly. I’ll have to go and research what that parameter does.

    :cheese:

  • #4 / Jul 17, 2012 7:23am

    No worries, there’s a well made video at: http://www.train-ee.com/courseware/free-tutorials/comments/dynamic-off-explained/ that explains the parameter.

  • #5 / Jul 17, 2012 7:30am

    Iceberg Creative

    21 posts

    Just saw that video. Very good 😊

    Should it be dynamic=“off” or “no”?

    (Using EE2.X.X)

  • #6 / Jul 17, 2012 7:34am

    I believe dynamic=“off” was for EE 1.x, and it was changed to “no” in 2.x. Except for that, the concept is the same.

  • #7 / Jul 17, 2012 7:52am

    Iceberg Creative

    21 posts

    Okay, thanks again for your help. I really appreciate it.

  • #8 / Jul 17, 2012 3:33pm

    Kyle Cotter

    730 posts

    Hey Iceberg Creative,

    Glad Michael was able to lend a hand here.

    Yup, the dynamic=“no” parameter is what you’re looking for.

    If you have any more questions, feel free to post again.

    Thanks guys!

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

ExpressionEngine News!

#eecms, #events, #releases