Jump to content

Want to have custom header and footer on some pages. But not all.


broschats

Recommended Posts

What is the trick to display a page with a different header or footer for example, I would like to have the ticket process when displayed in a block on my site be displayed without any sidebar or registration options etc... However I may want the original style to be intact when accessed from a link or some other area of the site.

 

I think I remember someone showing an easy way to do this kinda thing.

 

I can edit the css style for the template but that affects everything.....

Help :)

 

Thanks

Link to comment
Share on other sites

If you place {debug} in your header, then visit a page you'll get a pop-up of a list of variables that you can use.

 

You should then be able to find something you can use, maybe the page URL, script name etc. So you could have:

 

{if $variable eq "name of tickets page"}No sidebar{else}sidebar{/if}

Link to comment
Share on other sites

Um not working when placed in the header or footer .tpl file. I am able to see debug data but the data when used in these files in the syntax provided No Workie. :( What am I doing wrong?

here is what I am inserting.

 

{debug} {if $pagetitle eq "Advertising"}No quicknav{else}quicknav{/if}

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