HighFlyerPL185 Posted March 18, 2012 Report Share Posted March 18, 2012 Hello there, I have designed a pilot centre for my pilots, and I have made a custom banner just for the centre. In the layout.tpl, I have a jQuery sliding banner defined for all of the sites, but I was wondering whether there is a way to exclude it in the pilot center, so I end up with a single banner, and not two of them? Regards, HighFlyer Quote Link to comment Share on other sites More sharing options...
Sava Posted March 18, 2012 Report Share Posted March 18, 2012 You can exclude any piece of code by using // for single lines or <!-- --> for larger sections of text. <html> bla bla bla //single line of excluded text <!-- a big portion of excluded text --> bla bla </html> If you want some content appearing in the homepage only remove it from the layout.tpl and add it to the frontpage_main.tpl (I believe that is the name) Or you can add it to a separte template file that you will include whenever you need it. Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 18, 2012 Author Report Share Posted March 18, 2012 Thanks for your reply, but this is not what I meant exactly. My question was more like, if there is a way to exclude code from a template? I.e main jQuery banner is set in layout.tpl to display for all pages, but I want to exclude it for profile_main.tpl. Quote Link to comment Share on other sites More sharing options...
Sava Posted March 18, 2012 Report Share Posted March 18, 2012 I don't think so. What you can do is have it in a separate .tpl and just include it when you need it <?php include('banner.tpl'); ?> 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.