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.

[Solved] Update: I made a video illustrating the problem / Footer content missing when i navigate entries

September 01, 2012 2:08pm

Subscribe [2]
  • #1 / Sep 01, 2012 2:08pm

    Stian Karlsen

    19 posts

    Update - click to see video illustrating the problem

    I haven’t been using EE in a long time, and I was never really good at it to begin with, so I apologize if the answer to this is easy to find somewhere, but I’m not sure how to formulate a search. Sorry for the bad topic name.

    Basically I have a template called “competence” like this

    <article id="competance">
    
      <nav>
        {exp:channel:entries channel="kompetanse" dynamic="off" sort="asc"}
          <a href="http://{title_permalink=kompetanse}">{title}</a>
        {/exp:channel:entries}
      </nav>
    
      {exp:channel:entries channel="kompetanse" limit="1" sort="asc"}
        <div>
          <h1 class="title"><span>{title}</span></h1>
            {kompetanse_main_text}
          
    
          <article class="three-col">
            <section>
              {kompetanse_left_column}
            </section>
            
            <section>
              {kompetanse_middle_column}
            </section>
    
            <section>
              {kompetanse_right_column}
            </section>
          </article> <!-- #competance .three-col -->
        </div>
      {/exp:channel:entries}
    </article> <!-- .three-col -->
    {embed="site/footer"}

    I have removed index.php and modified htaccess according to the official docs, which works fine, but i mention it because maybe it is related to my problem?

    When i go to http://site.com/competence the template shows fine, and the nav populates with all the entries in the channel. However when i click on one of them, and im taken to site.com/competence/entryname everything also seems to work fine, except that the content in my footer disappears.

    Viewing the source I notice that the only thing missing from the footer is the channel entry, everything else (static content) is still there. It’s as if EE doesn’t “find” the footer content when i go one level deeper than /competence (ie competence/another-entry

    Any help is greatly appreciated, thanks!

  • #2 / Sep 02, 2012 7:22am

    Stian Karlsen

    19 posts

    I have created a quick video showing the problem in case my explanation was unclear.


    Click here to see video illustrating the problem

  • #3 / Sep 02, 2012 10:10am

    John St-Amand

    865 posts

    Can you post the content of the site/footer template?  I suspect it’s as simple as dynamic=“no” being needed if your footer content is also coming from an entries loop.

  • #4 / Sep 02, 2012 11:17am

    Stian Karlsen

    19 posts

    That did the trick, thank you!

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

ExpressionEngine News!

#eecms, #events, #releases