I’ve created a region in my theme’s .info file, and added the region variable to page.tpl.php. If I want to add some code to this region, how do I do it?
I’ve created a region in my theme’s .info file, and added the region variable
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Short answer: you use the region name you declared in your info file as a variable in your template files.
Long answer: here is an excellent video on how to do theming.
The whole region system is explained in this video, and a lot more.
http://acquia.com/community/resources/acquia-tv/tips-and-tricks-drupal-theming-90-minute-tutorial
Greetz,
J.