You are here

README.txt in Panels Sections 6.2

Same filename and directory in other branches
  1. 6 README.txt
  2. 7.3 README.txt
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 
hook_preprocess_page:

------------
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
  1. README.txt
  2. ==========
  3. This module is based on the sections module here:
  4. http://drupal.org/project/sections
  5. This module allows you to create sections of your website defined by path or PHP code
  6. Admin->Build->Panels Sections (admin/build/panels_sections)
  7. After you have defined sections, you must place one line of code in your template.php
  8. hook_preprocess_page:
  9. ------------
  10. panels_sections_takeover($vars);
  11. ------------
  12. This does the following:
  13. - check if current path has a panels_page specified for it.
  14. if so, takeover the current page with the panels_page
  15. - if not, check if current path is registered to a panels_section,
  16. if so takeover the current page with the panels_page associated with the section
  17. - pass on variables to the panel and do some text replacing to allow
  18. the Panels Content Placeholder block to be replaced with page content
  19. this allows for panels to take over any page, and normal page content is
  20. outputted where the Panels Content Placeholder block is placed
  21. WARNING: This function will unset some $vars (help, tabs, title, messages)
  22. so make sure this function is called AFTER any $vars manipulation