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

How Do I Add Template Sections to Static Pages?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-19-2007, 06:14 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Unhappy How Do I Add Template Sections to Static Pages?

I have been reading the posts for weeks, as well as the Template Editing Guide and still cannot understand how to add templates to my static pages. I want to create just a couple of static pages but I want them to have the same look as the home.php page.

For exampled, I have a splash page: http://www.mytiddies.com/xcart but it has none of the elements it needs, e.g. the header.tpl, the menu boxes, the search bar, etc.

Ideally I would like to bring the html content of this splash page into http://www.mytiddies.com/xcart/home.php where the welcome.txt is but am so confused about how to do this. Any help would be greatly appreciated by this newbie!
__________________
www.mytiddies.com
X-Cart Version 4.0.19
Reply With Quote
  #2  
Old 03-19-2007, 06:18 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: How Do I Add Template Sections to Static Pages?

If you add an embedded static page, it automatically uses the same template as the site. You simply add content and it will show up in the main structure of the site.

A splash page is different, as it is not in the framework of the site. I recommend not using a splash page, and instead just add your splash page content to customer/main/welcome.tpl. Just add the html right to the template, or you can add it in the welcome text language variable.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-19-2007, 08:02 AM
 
Patti@tiddiesinc.com Patti@tiddiesinc.com is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 41
 

Default Re: How Do I Add Template Sections to Static Pages?

Thanks, Balinor! I was making it way too complicated.....
__________________
www.mytiddies.com
X-Cart Version 4.0.19
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 10:15 PM.

   

 
X-Cart forums © 2001-2020