I know about using the phpinclude template but it's not able to do what I need...Or maybe I just don't know how to do it so it works. Here's what I'm trying to do:
I'm creating tabs for some of the areas in the forum and removing them from the navbar:
Home <> Community <> FAQs <> Rules <> etc.
The color theme for my tabs are: (Blue: current page AND Orange: other pages)
In php, I could have a variable that I use in the header of each page. For example:
The home page : $tabactive = 1;
The community page: $tabactive = 2;
The FAQs page: $tabactive = 3;
and so on.
In my one header file, I could include something like:
<if ($tabactive == 1)>
the home button is blue
<else>
the home button orange
</end if>
I would code every tab with a similar if/else and it would load appropriately based on the value for $tabactive on each page.
How do I accomplish this using the templates?
I know this can be accomplished by creating different header templates, but I'm trying to avoid that unless absolutely necessary.
I'm creating tabs for some of the areas in the forum and removing them from the navbar:
Home <> Community <> FAQs <> Rules <> etc.
The color theme for my tabs are: (Blue: current page AND Orange: other pages)
In php, I could have a variable that I use in the header of each page. For example:
The home page : $tabactive = 1;
The community page: $tabactive = 2;
The FAQs page: $tabactive = 3;
and so on.
In my one header file, I could include something like:
<if ($tabactive == 1)>
the home button is blue
<else>
the home button orange
</end if>
I would code every tab with a similar if/else and it would load appropriately based on the value for $tabactive on each page.
How do I accomplish this using the templates?
I know this can be accomplished by creating different header templates, but I'm trying to avoid that unless absolutely necessary.
Comment