As you know, I have a slightly different template for the main.tpl/home page and a different version for all other areas/pages.
On my Wrapper I use conditionals to only show a certain portion of the template on the home page.
<IF {TID} contains main> stuff meant for only the homepage </IF>
However, this makes helpmain.tpl load like the front page because it contains the name "main".
I didn't want to change the template name in help.php because it will be overwritten on the next upgrade, but for now I'm using it because it's what I have to work with for now.
I tried this, but it borked the entire site.
<IF {TID} contains main> stuff meant for only the homepage <ELSE IF {TID} contains helpmain> </IF>
Comments on "Showing wrapper content for one area only "
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
Hey there,
As you know, I have a slightly different template for the main.tpl/home page and a different version for all other areas/pages.
On my Wrapper I use conditionals to only show a certain portion of the template on the home page.
However, this makes helpmain.tpl load like the front page because it contains the name "main".
I didn't want to change the template name in help.php because it will be overwritten on the next upgrade, but for now I'm using it because it's what I have to work with for now.
I tried this, but it borked the entire site.
Thanks.
this is for reellocations.com btw
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
<IF {TID} contains /main.tpl> should work, if not <IF {FUNC_CURRENTURLCONTAINS[index.php]} and {TID} contains main> will work.
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
<IF {TID} contains /main.tpl> worked perfectly. Thank you.