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

Help: Logic to specify what pages .tpl text editing shows up on

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-10-2007, 09:30 PM
 
imimin imimin is offline
 

Senior Member
  
Join Date: Mar 2007
Posts: 195
 

Default Help: Logic to specify what pages .tpl text editing shows up on

I have recently discovered that I can add text above and below the tables in x-cart pages by editing the dialog.tpl file. What I DON'T want to happen is for the text I am entering to show up on all of my pages (only the product and products pages, that is what I call product thumbnail pages and product detail pages). Can someone tell me how to apply logic to .tpl pages so my editing will only apply to certain pages?

Thank you!
__________________
Demoing v4.4.2 for new site
Licensed v4.0.19
Reply With Quote
  #2  
Old 07-22-2007, 04:25 AM
 
balinor balinor is offline
 

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

Default Re: Help: Logic to specify what pages .tpl text editing shows up on

Either use {if} statements to only show items on product and category pages, or create a duplicate of dialog.tpl and call that from subcategories.tpl and product.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-22-2007, 06:53 AM
  rogue's Avatar 
rogue rogue is offline
 

X-Adept
  
Join Date: Apr 2007
Location: Loveland, Ohio
Posts: 770
 

Default Re: Help: Logic to specify what pages .tpl text editing shows up on

You would probably be better off to edit the product.tpl and products.tpl pages to add the text you want around the dialogs there.
__________________
Richard Williams
Rogue Wave Limited

Initial Inventory Imports
Daily Inventory Updates
Daily Inventory Reports
Drop Ship Support
Order Export to Shipper/Supplier
Shopping Feeds That Work
Programming for X-Cart

richard@roguewavelimited.com
http://www.roguewavelimited.com
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 02:01 PM.

   

 
X-Cart forums © 2001-2020