Jump to content

Not show a code in certains pages


El Host

Recommended Posts

I need help to do a code that doesnt show an other in certains pages.

For Example:

I need that this code not show in Home.

I use this:

{if $pagetitle != 'Inicio'}
XXXXXXX
{/if}

How Can I do for not show in more pages for example Test and Test1.

I tried this, but not work:

{if $pagetitle != 'Inicio' || $pagetitle != 'Test'}
XXXXXXX
{/if}

Link to comment
Share on other sites

I want this code will not show in Home and Test pages, but will show in the others pages.

 

changing eq to neq in matts example above should do the trick

 

or you can use an else statements....

 

{if $pagetitle eq "Support" || $pagetitle eq "Announcements"}
This will show on the home or announcements page...
{else}
This will show if you are not on the announcements or home page
{/if}

Link to comment
Share on other sites

I put:

{if $pagetitle neq "Inicio" || $pagetitle neq "Planes de Hosting"}

But with this code it shows in all pages.

 

Edit:

I did it putting this:

{if $pagetitle neq "Inicio"}{if $pagetitle neq "Planes de Hosting"}
Edited by El Host
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