![]() |
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 |
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. |
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.