Webmastersite.net
Register Log In

"Showing wrapper content for one area only "
This isn't working when the same "word" appears in the tem

Comments on "Showing wrapper content for one area only "

sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 25, 2003

Total Topics: 70
Total Comments: 211
Posted May 22, 2011 - 5:35 PM:

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.


<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>



Thanks.


this is for reellocations.com btw
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 23, 2011 - 12:39 PM:

<IF {TID} contains /main.tpl> should work, if not <IF {FUNC_CURRENTURLCONTAINS[index.php]} and {TID} contains main> will work.
sparkalina
Forum Regular

Usergroup: Customer
Joined: Nov 25, 2003

Total Topics: 70
Total Comments: 211
Posted May 23, 2011 - 12:50 PM:

<IF {TID} contains /main.tpl> worked perfectly. Thank you.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.