PDA

View Full Version : Display certain page without Header neither Footer



mbavio
01-13-10, 10:36 PM
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?

sparky
01-14-10, 08:01 AM
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

mbavio
01-14-10, 08:41 PM
You are so fuc**** right, how I didnt think about that! Thanks pal, I owe you a beer!