![]() |
Conditional Help Needed
Hi,
I am working on a new site and in the customer/home.tpl I have... {include file="customer/head_sub.tpl"} But I want to make it a conditional and ONLY show on the home.php page. I have: {if $main eq "home"} {include file="customer/head_sub.tpl"} {/if} But, when I use this code, it disappears completely so I know something isn't correct. Can anyone tell me what I'm doing wrong? Please.....Thanks, Louise |
Ahh, just guessing here,
maybe try this in home.tpl..... EDIT: K! I guessed wrong! My Bad! :oops: I'll go back to lurkin.. |
Thanks for the help....but I tried that and could not get it to work.
Anyone else have a clue? Louise |
Code:
{if $main eq "catalog" and $current_category.category eq ""}{include file="customer/head_sub.tpl"}{/if} |
Jon,
Does this code go in my home.tpl file? Also, I only have one category, does that make a difference? Thanks, Louise |
That code can go whereever you want the include to appear. Looks like probably you want it in your home.tpl
|
Thanks Jon
I know it takes time to answer all the questions in the forums and I appreciate each and everyone that does......I try when I have an answer and I am lightyears ahead of where I was 6 months ago, but still have a long way to go. Thanks again....it worked GREAT!!! Louise |
All times are GMT -8. The time now is 06:55 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.