Jump to content

Display certain page without Header neither Footer


mbavio

Recommended Posts

Hi, guys, this is my first post in the forum, so I will try to be clear enough.

 

I´m trying to display certain page without header or footer. Is there any way of disabling them from a certain tpl template file?

 

I´m looking for something similar to what viewinvoice.tpl does, which is not to load header or footer, but writing the whole page from scratch.

 

 

Can I do that or I´m just too crazy?

Link to comment
Share on other sites

Sure you can

for this example we will use downloads.php

In your header.tpl add this around it

{if $filename!="downloads"}

 

YOUR ORIGINAL HEADER.TPL CODE HERE

 

{/if}

Then do the same for the footer.tpl file

 

Then in the downloads.tpl file you can put your custom header and footer

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