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.

Home Page Is Rendering Content From All Pages

June 20, 2012 4:56pm

Subscribe [2]
  • #1 / Jun 20, 2012 4:56pm

    visfire

    2 posts

    Our homepage seems to be rendering content from all pages.
    http://impactingleaders.com/

    However, when you go to the URL /index, as specified in the page entry, it works fine.
    http://impactingleaders.com/index

    Here is my page template

    {embed='site/header'}
    [removed][removed]
    [removed][removed]
    [removed][removed]
       <!--start intro-->
         {embed='banners/home-banner'}
       <!--end intro-->
       <!--start holder-->
       <div class="holder_content">
          <section class="welcome-box">
             <h3>{exp:channel:entries channel="site"}{home_page_title}{/exp:channel:entries}</span></h3>
    <p>         {exp:channel:entries channel="site"}{body_content}{/exp:channel:entries}<br />
          </section><br />
          <br />
           {embed='site/home-client-speak'}<br />
          <br />
          {embed='site/home-blog'}<br />
          <br />
     <div class="clear"></div><br />
     <div class="shadow"></div><br />
     </div><br />
     <!--end holder--><br />
       <!--start holder--><br />
       <div class="holder_content"><br />
          <section class="our-approch"><br />
            </p><h3>{exp:channel:entries channel="site"}{lower_left_title}{/exp:channel:entries}</h3>
    <p>         <article><br />
             {exp:channel:entries channel="site"}{lower_left_body}{/exp:channel:entries}<br />
       <a href="http://our-approach"><span class="button">Read more</span></a><br />
             </article> <br />
       images/Puzzle-OurApproachGraphic.jpg<br />
           </section><br />
      <br />
         {embed='site/home-tab'}<br />
         <br />
       </div><br />
       <div class="clear"></div><br />
       <!--end holder--><br />
      {embed='site/footer'}

  • #2 / Jun 20, 2012 5:02pm

    visfire

    2 posts

    We are running the NavEE module

  • #3 / Jun 20, 2012 7:00pm

    Stephen Callender

    148 posts

    This is one way…

    {exp:channel:entries channel="site" entry_id="ENTER_HOME_PAGE_ENTRY_ID"}
     <!--start holder-->
      <div class="holder_content">
        <section class="welcome-box">
          <h3>{home_page_title}</span></h3>
    <p>      {body_content}<br />
        </section><br />
          <br />
        {embed='site/home-client-speak'}<br />
          <br />
        {embed='site/home-blog'}<br />
          <br />
        <div class="clear"></div><br />
        <div class="shadow"></div><br />
      </div><br />
     <!--end holder--><br />
     <!--start holder--><br />
      <div class="holder_content"><br />
        <section class="our-approch"><br />
          </p><h3>{lower_left_title}</h3>
    <p>      <article><br />
            {lower_left_body}<br />
            <a href="http://our-approach"><span class="button">Read more</span></a><br />
          </article> <br />
          images/Puzzle-OurApproachGraphic.jpg<br />
        </section><br />
      <br />
        {embed='site/home-tab'}<br />
         <br />
      </div><br />
      <div class="clear"></div><br />
     <!--end holder--><br />
    {/exp:channel:entries}

  • #4 / Jun 20, 2012 7:02pm

    Stephen Callender

    148 posts

    Or have the opening channel:entries tag add in this

    {exp:channel:entries channel="site" {if segment_1 == ''}entry_id="ENTER_HOME_PAGE_ENTRY_ID"{/if}}
  • #5 / Jun 20, 2012 7:57pm

    visfire

    2 posts

    Thanks Stephen, Do you know why syntax was breaking on the root page but any others?

    Here is the final code I used to get it working.

    {embed='site/header'}
    [removed][removed]
    [removed][removed]
    [removed][removed]
       <!--start intro-->
         {embed='banners/home-banner'}
       <!--end intro-->
    {exp:channel:entries channel="site" entry_id="8"}
     <!--start holder-->
      <div class="holder_content">
        <section class="welcome-box">
          <h3>{home_page_title}</span></h3>
    <p>      {body_content}<br />
        </section><br />
          <br />
        {embed='site/home-client-speak'}<br />
          <br />
        {embed='site/home-blog'}<br />
          <br />
        <div class="clear"></div><br />
        <div class="shadow"></div><br />
      </div><br />
     <!--end holder--><br />
     <!--start holder--><br />
      <div class="holder_content"><br />
        <section class="our-approch"><br />
          </p><h3>{lower_left_title}</h3>
    <p>      <article><br />
            {lower_left_body}<br />
            <a href="http://our-approach"><span class="button">Read more</span></a><br />
          </article> <br />
          images/Puzzle-OurApproachGraphic.jpg<br />
        </section><br />
      <br />
        {embed='site/home-tab'}<br />
         <br />
      </div><br />
      <div class="clear"></div><br />
     <!--end holder--><br />
    {/exp:channel:entries} <br />
      {embed='site/footer'}

  • #6 / Jun 20, 2012 11:50pm

    Stephen Callender

    148 posts

    I could be wrong, but I think it’s because if you run dynamic templates you need entry data in the url or it pulls everything possible. For example, on a site where you have site.com/blog where the channel:entries tag pulls from, let’s say, channel=“blog”, that page would print all blog entries. Once you go to site.com/blog/article-name, you’ll get the specific blog. That’s why http://impactingleaders.com/index printed just the index page data, but http://impactingleaders.com pulled every entry in that channel. That’s my understanding.

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

ExpressionEngine News!

#eecms, #events, #releases