Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

include statement for header in 404_en.html

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-20-2011, 10:22 AM
 
sdstren sdstren is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 111
 

Default include statement for header in 404_en.html

This should be so simple, but unfortunately, I only know enough to drive myself crazy.

I want to do an include statement for the header and footer in 404_en.html to use the header and footer I've already worked on for the rest of the site.

So, I went and looked at home.tpl to see how the header/footer is called there. It looks like this:

<div id="header">
{include file="customer/head.tpl"}
</div>

So, I cut/pasted this into 404_en.html and changed the path like this:
<div id="header">
{include file="/skin/common_files/customer/head.tpl"};
</div>

Well, that doesn't work. It reads the above as text, so I tried looking it up on w3schools to make it a php statement. Tried enclosing it in <?php tags:

<div id="header">
<?php include("/skin/common_files/customer/head.tpl"); ?>
</div>

The text is not on the screen now, but neither is the header.

Can someone please tell me what I'm doing wrong?
Sorry for my lack of expertise.

I just want to do a simple include and need someone to hold my hand and walk me through it.
__________________
Sandi in AL
Xcart Pro 4.4.3
Reply With Quote
  #2  
Old 08-20-2011, 04:22 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: include statement for header in 404_en.html

404_en.html is an html file, what you are trying to do works on smarty template files. The php portion is also completely wrong. Just html code the header and footer instead of trying to go dynamic
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-20-2011, 07:48 PM
 
sdstren sdstren is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 111
 

Default Re: include statement for header in 404_en.html

Thanks Steve. That's what I finally ended up doing.
__________________
Sandi in AL
Xcart Pro 4.4.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:58 AM.

   

 
X-Cart forums © 2001-2020