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)
-   -   How Do I Add a Template to Specific Static Pages? (https://forum.x-cart.com/showthread.php?t=18002)

sharingsunshine 11-15-2005 03:12 PM

How Do I Add a Template to Specific Static Pages?
 
Hello,

I have several static pages and on some of them I need to add a block of text at the top of the pages. This text changes from time to time and I will have other blocks of text that will need to be added additionally to other static pages.

You can see this in action at the product page level at http://theherbsplace.com.whsites.net/shop/product.php?productid=4&cat=1&page=1

The block of text (navigation bar) at the top is what I want to insert on the specific static pages.

I just need to know what the syntax would look like for an If statement to make this conditional and what .tpl file I need to insert the if logic in. The block of text is in a .tpl file.

Thanks,

Randal

balinor 11-16-2005 05:50 AM

You would edit customer/main/pages.tpl, and the if statement would look like this:

{if $smarty.get.pageid eq "x"}

Where X is the page number.

sharingsunshine 11-16-2005 11:03 AM

Thanks so much! That works great!

Randal


All times are GMT -8. The time now is 01:27 AM.

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