One panel for all groups

arhip - April 20, 2008 - 12:31
Project:Organic groups
Version:5.x-6.1
Component:og_panels.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I modified og_panels module so it can have panels reusable for all groups/groups with the same type.

First, I added a column named 'type' in table {og_panels}, that can have one of the following values:

  • empty - this panel is used only for single nid
  • content type - this panel is used for all groups with this content type
  • * - this panel is used for all groups

In this patch:

  • og_panels_form have two more checkboxes: use for all groups and use for all groups with the same content type
  • og_panels_form_submit modified to handle column 'type'
  • og_panels_table have column 'use in' to inform administrators where this panel will be used
  • og_get_all retrieves all panels based on nid, content type, and type='*'
AttachmentSize
og_panels.module.patch26.58 KB

#1

moshe weitzman - April 20, 2008 - 14:52
Status:needs review» needs work

Could you try the new og_blueprints module and see if it suits your needs? i would rather keep og_panels simple. If it doesn't, we'll figure out how to proceed.

#2

moshe weitzman - April 20, 2008 - 15:00
Status:needs work» fixed

i think there are better solutions for "use for all groups" and "use for all groups of this type". you just use panels pages. see http://www.tejasa.com/node/160

#3

arhip - April 20, 2008 - 16:31

Ahhh! That's what I've looked for! I have stuck for hours before I decided to modify the module. Thanks for your solution.

#4

Anonymous (not verified) - May 4, 2008 - 16:31
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.