X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help: Logic to specify what pages .tpl text editing shows up on (https://forum.x-cart.com/showthread.php?t=32468)

imimin 07-10-2007 09:30 PM

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!

balinor 07-22-2007 04:25 AM

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.

rogue 07-22-2007 06:53 AM

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.


All times are GMT -8. The time now is 01:59 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.