mbavio Posted January 13, 2010 Share Posted January 13, 2010 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? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted January 14, 2010 Share Posted January 14, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
mbavio Posted January 14, 2010 Author Share Posted January 14, 2010 You are so fuc**** right, how I didnt think about that! Thanks pal, I owe you a beer! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.