Panels Sections

KingMoore - February 20, 2009 - 06:11

THIS MODULE IS CURRENTLY UNSUPPORTED AS PANELS 2 BRANCH NO LONGER EXISTS

This module allows you to create sections of your website defined by path or PHP code
Admin->Build->Panels Sections (admin/build/panels_sections)

In order to allow Panels to take over 'sections' of your site as defined in Panels sections you must place a line of code in hook_preprocess_page in your theme.

------------
panels_sections_takeover($vars);
------------

This does the following:

- check if current path has a panels_page specified for it.
if so, takeover the current page with the panels_page (this functionality should be the same as without panels_sections)

- if not, check if current path is registered to a panels_section,
if so takeover the current page with the panels_page associated with the section

- pass on variables to the panel and do some text replacing to allow
the Panels Content Placeholder block to be replaced with page content
this allows for panels to take over any page, and normal page content is
outputted where the Panels Content Placeholder block is placed

WARNING: This function will unset some $vars (help, tabs, title, messages)
so make sure this function is called AFTER any $vars manipulation

Panels Sections also provides a %CONTENT% block that can be placed in panes to allow panels takeover of non-node pages (user/login etc.). This allows themers to only worry about a panels theme, not a panels theme and separate code for non-panels pages.

Panels Sections is still in development and unsuitable for production use as is. Better documentation coming at some point. I mainly just wanted to get this up and out there.

Currently for use with PANELS 2.

Releases

Development snapshotsDateSizeLinksStatus
6.x-2.x-dev2009-Mar-1211.2 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.