Sections: assign themes to sections of your site

Last modified: March 14, 2009 - 14:59

This module allows you to create sections. Each section has an installed template, theme or style attached to it. Each section also contains a path setting similar to the new blocks admin. You can then assign themes to a list (regex'ed) paths.

For example, if you want another style for your site admin, all you have to do, is create a section with:
name: Administration Section
path: admin*
and select (a custom made) theme "admintheme" to that section.

You can:

  • read about known bugs, and download the latest version on the Sections project page.
  • View tutorial of how to use Sections with Pathauto here.

Tutorials

Alternatives

  • You can approximate some, but not all, of this module's functionality using the Drupal theming concept, template suggestions.
  • If you are trying to control the display of sidebars by section of your website, try using Drupal's core block functionality to restrict blocks to certain pages

Blocks must be assigned for each new section/theme

miriamnz - October 1, 2008 - 23:49

Each new section/theme has to have blocks enabled specifically for it.
Once the section is created and a theme applied, go to the blocks page, choose the relevant theme and choose the blocks.

Apparently this is required due to the way Drupal core functions. Each theme controls the blocks that are visible while that theme operates.

Subthemes created to use with sections also require the blocks to be assigned again.

Miriam
Otaki, New Zealand

Thank you very much for the

geshan - October 3, 2009 - 16:33

Thank you very much for the link to my blog.

Make sure to "switch to plain text editor/mode"

harkonnen - November 20, 2009 - 16:10

If you have installed WYSIWYG HTML editor like FCKeditor module...

Before you add 'paths' in Administer >> Site building >> Sections
make sure to "switch to plain text editor" before you add pages to "activate section".

Otherwise, your addded 'blog' page, for example, will become ' <p>blog</p> '.

Add 'admin/build/sections/*' at 'Paths to exclude' config in your HTML editor's configuration page.

 
 

Drupal is a registered trademark of Dries Buytaert.