cavamondo Posted January 24, 2012 Share Posted January 24, 2012 i wish to add some header content only to de displayed on the frontpage .. is there some kind a {if $home} syntax i can use for this? 0 Quote Link to comment Share on other sites More sharing options...
k1ng440 Posted January 24, 2012 Share Posted January 24, 2012 {if $pagetitle eq "Portal Home"} yay {/if} or {if $pagetitle eq $LANG.globalsystemname} yay {/if} 0 Quote Link to comment Share on other sites More sharing options...
cavamondo Posted January 24, 2012 Author Share Posted January 24, 2012 That did it .. Thx a bunch 0 Quote Link to comment Share on other sites More sharing options...
Sitepearl Posted January 24, 2012 Share Posted January 24, 2012 I'd use something like $filename == 'index', in case you unwittingly change your page title. 0 Quote Link to comment Share on other sites More sharing options...
cavamondo Posted January 24, 2012 Author Share Posted January 24, 2012 I'd use something like $filename == 'index', in case you unwittingly change your page title. Yeah thx, the first sugestion did the trick, however, if i change language, "home" is not the title anymore etc, I ended up using = {if $filename == 'index'} blah {/if} Ok, to follow up. What if i wish to display some content on all pages, EXEPT on the index page? I did try: {if !$filename == 'index'} blah {/if} - but that didnt work .. please advice, thx ^^ 0 Quote Link to comment Share on other sites More sharing options...
k1ng440 Posted January 24, 2012 Share Posted January 24, 2012 use this: {if $pagetitle eq $LANG.globalsystemname} yay {/if} 0 Quote Link to comment Share on other sites More sharing options...
cavamondo Posted January 24, 2012 Author Share Posted January 24, 2012 (edited) use this: {if $pagetitle eq $LANG.globalsystemname} yay {/if} Thx, really appeiciate the help here. This worked too ... is there a syntax to NOT show something on a given page .. tried using: {if !$filename == 'index'} .. but coulndt seem to get it to work? * EDIT - found soluton to this one. Another thing, im trying to make a UL LI where on of the LI links is to be "HOME" - but spelled differently depending on what language the users has chosen. Is thee a way to echo the output spelled as in globalsystemname or so? .. i tried just to use globalsystemname, but the title then changed depending on what page title i was on, support, ticket and so forth .. im going for a HOME title, not changing when navigating thru diferent pages titled differently .. just spelled differently. * SOLUTION <a href="index.php" title="{$LANG.globalsystemname}">{$LANG.globalsystemname}</a> Again, i really appreciate the help .. Edited January 24, 2012 by cavamondo 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 24, 2012 Share Posted January 24, 2012 {if $pagetitle neq 'Portal Home'}blah{/if} 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.