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

Where do I put a doctype tag?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-31-2006, 01:39 PM
  thentavius's Avatar 
thentavius thentavius is offline
 

Advanced Member
  
Join Date: Dec 2006
Posts: 34
 

Question Where do I put a doctype tag?

I would like to add the following code to a template which can apply the code to each page (rather like putting it in the <head> tag).

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm...D/xhtml1-transitional.dtd">

I tried putting it in the customer/home.tpl, based on what the Webmaster Mode defined as the template that controls the whole page, but I'm not sure if that's the right place for it.
__________________
XCart Gold - 4.0.19
Server using: Debian GNU/Linux with PHP 4.4.0
Reply With Quote
  #2  
Old 12-31-2006, 02:16 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Where do I put a doctype tag?

Wow... it is missing from 4.0.19

Yes, your instincts to put it in /customer/home.tpl are correct.

Here is where it lives in 4.1.x stock configs (in home.tpl):

Code:
{* $Id: home.tpl,v 1.88.2.4 2006/10/13 10:41:21 svowl Exp $ *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> {if $printable ne ''} {include file="customer/home_printable.tpl"} {else} {config_load file="$skin_config"} <html> <head>
Right on top, before <html> (where it belongs).

Download a copy of 4.1.5 just to compare.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 01-01-2007, 09:56 AM
  thentavius's Avatar 
thentavius thentavius is offline
 

Advanced Member
  
Join Date: Dec 2006
Posts: 34
 

Default Re: Where do I put a doctype tag?

Thank you so much! I put it where it belongs.
__________________
XCart Gold - 4.0.19
Server using: Debian GNU/Linux with PHP 4.4.0
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 11:36 AM.

   

 
X-Cart forums © 2001-2020