Jako Posted May 21, 2008 Share Posted May 21, 2008 Is there a way to have a unique header depending on the page the user is on? For example, knowledgebase.php shows one thing, while cart.php shows another? All of these encrypted files include the header.tpl file. So I don't know if it's even possible to have two unique headers when everything else is encrypted. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted May 21, 2008 Share Posted May 21, 2008 You can use: {if $pagetitle == 'Page Title'} {/if} 0 Quote Link to comment Share on other sites More sharing options...
Jako Posted May 21, 2008 Author Share Posted May 21, 2008 You can use: {if $pagetitle == 'Page Title'} {/if} I'll give it a try. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted June 1, 2008 Share Posted June 1, 2008 Hmmm....where would I put this statement? {if $pagetitle == 'Page Title'} {/if} In the title? In the header? Or below the header somewhere? Where is it pulling the existing info from? {$companyname} - {$pagetitle} Thanks! 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted June 1, 2008 Share Posted June 1, 2008 opps...nevermind.... figured it out! I was only looking at the tpl files...when the info is in the php files... Then just update the lang file... cool Thanks! 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted June 1, 2008 Share Posted June 1, 2008 actually, can we take this one step further? And do the same thing with discriptions? and keywords? That'd be way cool... Or would the search engines reject it? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted June 2, 2008 Share Posted June 2, 2008 Now I'm lost where did you put the line of code and what did you change in the lang file? must be me being silly 0 Quote Link to comment Share on other sites More sharing options...
NoDoze Posted June 8, 2008 Share Posted June 8, 2008 I dunno where to put the code they mentioned above. The code I spoke of is already by default in the php file of each page that you make. The default code is in the header file. The coresponding $LANG.filename the the tpl or php file matches the same filename in the language file. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted June 8, 2008 Share Posted June 8, 2008 If you want something to appear on one page and not the other you can use that code... Read somemore here http://wiki.whmcs.com/Template_Syntax 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted June 9, 2008 Share Posted June 9, 2008 Thanks Baji, reading now 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.