Jump to content

Custom header content for landingpage ({if $home})


cavamondo

Recommended Posts

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 ^^

Link to comment
Share on other sites

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 by cavamondo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated