2

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?

1 Answer 1

7

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

1
  • thanks. I also found this discussion that contains I think a more concise form of the 2nd solution: drupal.org/node/982122
    – daphshez
    Commented Sep 28, 2011 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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