Hi, I've got a question about region in templates,. Can I remove region in templates after that they are already in page.tpl.php ? Example I have regions in my page.tpl.php [header] [main] [footer] and now can I remove the [main] region totaly in page--about.tpl.php template when he is used ? or change it to example [left_sidebar] ? ofcourse all my regions are sets already in .info file Does it make any errors ? Thx BR>
You can use different regions in different tpl files.But you have to mention all these regions in .info file On Wed, Mar 28, 2012 at 2:03 PM, Sargath <sargath@o2.pl> wrote:
Hi,
I've got a question about region in templates,. Can I remove region in templates after that they are already in page.tpl.php ? Example I have regions in my page.tpl.php
[header] [main] [footer]
and now can I remove the [main] region totaly in page--about.tpl.php template when he is used ? or change it to example [left_sidebar] ?
ofcourse all my regions are sets already in .info file
Does it make any errors ?
Thx
BR> _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
-- *Muhammed Naushad AH* Software Developer(PHP) Mobile:9176252984
You're better off leaving regions as-is and not complicating your codebase with too many templates. A few templates should suffice for most designs and the page.tpl.php template will be reused in most circumstances. Only create new tpl.php files when you have a definite need not met by the existing markup. Carl Wiedemann Website design & development consulting | c4rl.ws carl.wiedemann@gmail.com | skype: c4rlww
participants (3)
-
Carl Wiedemann -
muhammed naushad -
Sargath