keneso Posted June 29, 2011 Share Posted June 29, 2011 Hi, is it possible to have different headers for different pages, mainly homepage to have the top image (like the default template), and remove it from other pages? If yes, how? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted June 29, 2011 Share Posted June 29, 2011 Yes this is possible and can be achieved with conditional statements. For example I display a more "basic" layout on the shopping cart of my install than I do on the client area. 0 Quote Link to comment Share on other sites More sharing options...
mojahed Posted June 29, 2011 Share Posted June 29, 2011 Here is the Code: {if $pagetitle != 'Shopping Cart'} Here the header code of all other pages (Not FOR Shopping Cart Page) {else} Here you write the code of Shopping Cart Page Header {/if} 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted June 30, 2011 Author Share Posted June 30, 2011 Thank you both. >mojahed Thanks for the code, I'll try, hopefully will manage ... new to this. 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted June 30, 2011 Author Share Posted June 30, 2011 I am doing something wrong ... here is what I did, but I get the "-------" on all pages, I suspect I don't know what to put instead of 'homepage' {if $pagetitle != 'homepage'} --------- {else} <img src="templates/{$template}/header.jpg" width="730" height="118" alt="" /> {/if} Will you please shed some light for me? Thank you 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted June 30, 2011 Share Posted June 30, 2011 Try {if $pagetitle neq 'index'} 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted June 30, 2011 Author Share Posted June 30, 2011 Thanks, I had tried the index, and no luck. I got it working with {if $pagetitle != 'Portal Home'} Perhaps there should be a list of all pagetitles, somewhere here, that I couldn't find. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted June 30, 2011 Share Posted June 30, 2011 sorry that should have been {if $filename neq 'index'} 0 Quote Link to comment Share on other sites More sharing options...
keneso Posted June 30, 2011 Author Share Posted June 30, 2011 Thanks, got it. 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.