README.txt in Panels Sections 6
README.txt
==========
This module is based on the sections module here:
http://drupal.org/project/sections
This module allows you to create sections of your website defined by path or PHP code
Admin->Build->Panels Sections (admin/build/panels_sections)
After you have defined sections, you must place one line of code in your template.php
_phptemplate_variables function at the end of the hook = 'page' control:
------------
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
- 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
File
README.txt
View source
- README.txt
- ==========
- This module is based on the sections module here:
- http://drupal.org/project/sections
-
- This module allows you to create sections of your website defined by path or PHP code
- Admin->Build->Panels Sections (admin/build/panels_sections)
-
- After you have defined sections, you must place one line of code in your template.php
- _phptemplate_variables function at the end of the hook = 'page' control:
-
- ------------
- 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
-
- - 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