Download & Extend

Region settings for current theme on node edit form

Project:Region Visibility
Version:6.x-2.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

Sometimes we want to allow common users who write contents the privilege to suppress some regions like e.g. Sidebar right to fit very large contents in a page. For content writers, Admin UI could be too complex and risky to change (it's a site-wide screen, useful for admins).

This patch adds a new form on node add or edit form for privileged users (screenshot attached). This patch "convert" paths availables on Admin UI to region checkboxes for current path (node/NID) and inherit $record['visibility'] for that region.

  • Node settings are accepted for only 0 and 1, not for PHP (2).
  • Only current active theme is affected.

Note: The attached patch it seems to work but some tests are necessary. If someone more expert on Visibility API wants to check this patch please let me know!

AttachmentSize
region_visibility_on_node.png10.6 KB
region_visibility_on_node.patch3.67 KB

Comments

#1

An improved patch is attached.

AttachmentSize
region_visibility_on_node_2.patch 3.97 KB

#2

Fix collapsed beahaviour.

AttachmentSize
region_visibility_on_node_3.patch 4.16 KB

#3

When the module is installed, you have to visit admin/settings/region_visibility and click to Submit to generate records before node editing. I need help to fix this behaviour.

nobody click here