I am creating a custom theme, and I need different page layouts depending on the node types. I can't use the node--xxxxx.tpl.php template, because I need control on the page layout outside the content of the particular page.

How can I do this?


There's a module for that: the Context module is what you need.
You can do it with page-[type] via preprocess functions.

| improve this answer | |
  • thanks. I also found this discussion that contains I think a more concise form of the 2nd solution: drupal.org/node/982122 – daphshez Sep 28 '11 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.