Link to home
Start Free TrialLog in
Avatar of BaldNut-
BaldNut-Flag for United Kingdom of Great Britain and Northern Ireland

asked on

IF Statement for calling a tpl file.

Hi, I have a problem that i need the homepage of a xcart site to use a different head.tpl than the rest of the site, but the head.tpl is pulled into one global file.

I have recreated the 2nd file and called it head2.tpl and basically i want to say

(by the way this is not supposed to represent real code as i have no clue for this)

if homepage/index then {include file="head.tpl" }

else use: {include file="head2.tpl" }

If anyone can advise that would be great, need this asap.

Many thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Siridivi
Siridivi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial