Jump to content

Lost the content from my homepage


moonette

Recommended Posts

From what I see, this is your HTML rendered from the main.php template file, as seen by my browser:

     <div id="page_content">
        
                

        <p style="clear: both; height: 1px;">&nbsp;</p>
     </div><!--end of page_content-->

This is the standard statements from a stock skin:

      <div id="page_content">
        {include file='templates/box.errors.php'}
        {if isset($CHECKOUT_PROGRESS)}{$CHECKOUT_PROGRESS}{/if}
        {$PAGE_CONTENT}
        <p style="clear: both; height: 1px;">&nbsp;</p>
      </div>

Please examine the HTML in the main.php template file of your skin. Make sure that everything enclosed within braces is tightly enclosed - no whitespace:

{ $PAGE_CONTENT } <- Bad

{$PAGE_CONTENT} <- Good

 

I also see that you have SEO turned on, but the rewrite rules in the .htaccess file (or, if you are using a web server other than Apache, that server's means of rewriting URLs) is not performing properly. That is to say, I ask for /shop/index.php?_a=document&doc_id=7, and I get bounced to /shop/testimonials.html. But the web server reports that /shop/testimonials.html does not exist -- which, unless the rewrite rules are activated, is precisely the case.

 

Your web server reports itself as nginx/1.4.6. You will need to either: learn how to program the equivalent of Apache's .htaccess file for nginx, or consult with your hosting provider to assist, or not use SEO URLs.

Link to comment
Share on other sites

uggh... so confused.  I turned off the SEO URLS but still have the same problem that all the page content shows correctly,  But when someone goes to http://www.eternamemories.com/shop/ I want the home page to show up but the only way to get to the homepage is use this URL:  http://www.eternamemories.com/shop/index.php?_a=document&doc_id=5

 

I am not using the site docs as the navigation because my client wanted a home html page with a slideshow before people were immersed into a "shopping" experience.

Link to comment
Share on other sites

"I have indicated in my [admin Documents list] that [Doc 5, Inspiration: The Why and What of EternaMemories “EternaBeadsâ€] is my homepage."

 

Does the "Status" column of the Documents list for this document have a green check?

Link to comment
Share on other sites

"I have indicated in my [admin Documents list] that [Doc 5, Inspiration: The Why and What of EternaMemories “EternaBeadsâ€] is my homepage."

 

Does the "Status" column of the Documents list for this document have a green check?

Yes, the "status" has a green check.  And "homepage" radio button is selected for this page.

Link to comment
Share on other sites

Temporarily assign a different document as the Homepage document. Or create a new document with a simple Hello World! message and assign this new document as the Homepage document. Does a Homepage document show now?

 

In the skin's template file content.homepage.php, has this HTML been damaged:

{if isset($DOCUMENT)}
<div id="announcement">
    <h1>{$DOCUMENT.title}</h1>
     {$DOCUMENT.content}
</div>
 {/if} {if isset($LATEST_PRODUCTS)}

If you are NOT using CC528, ignore the following:

Please check this: Bring the troublesome Homepage document up for editing. Switch the editor to Source mode. Just note if there is a brace-asterisk sequence at or near the start of the document.

Link to comment
Share on other sites

Temporarily assign a different document as the Homepage document. Or create a new document with a simple Hello World! message and assign this new document as the Homepage document. Does a Homepage document show now?

 

In the skin's template file content.homepage.php, has this HTML been damaged:

{if isset($DOCUMENT)}
<div id="announcement">
    <h1>{$DOCUMENT.title}</h1>
     {$DOCUMENT.content}
</div>
 {/if} {if isset($LATEST_PRODUCTS)}

If you are NOT using CC528, ignore the following:

Please check this: Bring the troublesome Homepage document up for editing. Switch the editor to Source mode. Just note if there is a brace-asterisk sequence at or near the start of the document.

The content does show up when I go to this URL:  http://www.eternamemories.com/shop/index.php?_a=document&doc_id=5

 

The problem is that the page is blank if I just link to this URL:  http://www.eternamemories.com/shop/

 

It's like the content is there but it isn't recognizing doc_id 5 as my "homepage".

 

Here's what is in my content.homepage.php file:

 

{if isset($LATEST_PRODUCTS)}

<div>

  <h2>{$LANG.catalogue.latest_products}</h2>

  {foreach from=$LATEST_PRODUCTS item=product}

  <div class="latest_product">

    <form action="{$VAL_SELF}" method="post" class="addForm">

      <p class="image">

        <a href="{$product.url}" title="{$product.name}">

          <img src="{$product.image}" alt="{$product.name}" />

        </a>

      </p>

      <p class="title"><a href="{$product.url}" title="{$product.name}">{$product.name|truncate:38:"&hellip;"}</a></p>

      {if $product.review_score && $CTRL_REVIEW}

      <!-- Please uncomment to enable

      <p class="rating">

      {for $i = 1; $i <= 5; $i++}

        {if $product.review_score >= $i}

        <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/common/star.png" alt="" />

        {elseif $product.review_score > ($i - 1) && $product.review_score < $i}

        <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/common/star_half.png" alt="" />

        {else}

        <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/common/star_off.png" alt="" />

        {/if}

      {/for}

      </p>

      -->

      {/if}

      {if $product.ctrl_sale}

      <p class="price"><span class="price_previous">{$product.price}</span> <span class="price_sale">{$product.sale_price}</span></p>

      {else}

      <p class="price">{$product.price}</p>

      {/if}

      <p class="actions">

        <!-- Not shown in this skin

        <a href="{$product.url}" title="{$product.name}" class="button_black">{$LANG.common.info}</a>

        -->

        <input type="hidden" name="add" value="{$product.product_id}" />

        {if $product.ctrl_stock && !$CATALOGUE_MODE}

        <input type="submit" value="{$LANG.catalogue.add_to_basket}" class="button_add_basket" />

        {elseif !$CATALOGUE_MODE}

        <input type="submit" value="{$LANG.catalogue.out_of_stock_short}" class="button_add_basket disabled" disabled="disabled" />

        {/if}

      </p>

          </form>

  </div>

  {/foreach}

</div>

{/if}

Link to comment
Share on other sites

For some reason, this skin template file is missing what I posted earlier. So, find:

{if isset($LATEST_PRODUCTS)}
and add above it:
{if isset($DOCUMENT)}
<div id="announcement">
    <h1>{$DOCUMENT.title}</h1>
     {$DOCUMENT.content}
</div>
 {/if}

What skin are you using?

Link to comment
Share on other sites

For some reason, this skin template file is missing what I posted earlier. So, find:

{if isset($LATEST_PRODUCTS)}
and add above it:
{if isset($DOCUMENT)}
<div id="announcement">
    <h1>{$DOCUMENT.title}</h1>
     {$DOCUMENT.content}
</div>
 {/if}

What skin are you using?

A custom skin.  I had to hard code some of the nav because my client wants some of the categories to just have one product and link directly to that specific product. 

 

Your fix worked for me.  Thank you so much!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...