Trying OG 7.2

Events happening in the community are now at Drupal community events on www.drupal.org.
deastlack's picture

I am attempting to retro fit an existing site (configuration detailed below) with Domain Access and Organic Groups.

The existing site for anonymous users is and must remain the default domain (Domain id =1). The second and subsequent domains are intended ONLY for authenticated user with various roles.
Domain Access is operational with a drop-down selection list enabling movement between domains. So far, so good.

I have designated five content types as group nodes, adding four fields (Group, Reference, Registration and Visibility) to each content type and manually setting the fields in the existing nodes.
Additionally, I’ve designated 3 content types as group content and added the appropriate fields.

Again, so far, so good.

I have used panels and created a panel page with variants for each Group Content type. The panel page accepts an argument (Node Id). I plan on using QuickTabs to display the various views of group content views. The Group node is being displayed in a QuickTabs block on the panel

Issues:

Each authenticated user is affiliated with a default group in their user profile (a node reference field added to the user account). A) When the user logs in, he/she needs to be redirected to the Organic groups interface with their default group displayed (Hoping that a rule can do this). B) When the user clicks on the “Home” menu option, he/she needs to be returned to the OG interface with the default group displayed.

I have identified several tables which appear to be used by Organic Groups (see below). Some of the tables have a field called gid, which I assume stands for “group Id”. The problem is that, in no table can I find records for my group nodes where the node has both a nid and a gid. The OG table has no records whatsoever. Since this is a retrofit situation, do I need to create records in this table “manually” or via a script of some sort? Or, is the OG table, and, perhaps some of the other tables, leftover from the OG 7.1 version I initially installed? Since a user will be able to join multiple groups I had planned on having a block “Joined Groups” as a part of the OG interface to enable the user to switch between groups yet remaining within the panel page by use of the group type based variants.

I know these issues cross module boundaries but any thought on the general approach I’ve outlined or on the OG portion specifically would be greatly appreciated

Configuration:

  • Drupal Core 7.21
    • Fields
    • Fields SQL Storage
    • List
    • Options
    • Text
  • Organic Groups 7.x-2.1 (sub components Access Controls, Content, Fields Access, Register, and UI are enabled)
  • OG Forum 7.x-2.0 alpha1
  • Entity API 7.x-1.0
  • Entity Reference 7.x-1.0
  • CTools 7.x-1.2
  • Panels 7.x-3.3
  • Views 7.x-3.6

Organic Groups Tables

  • Field_data_og_group_ref
  • Field_data_og_membership_request
  • Field_data_og_roles_permissions
  • Field_data_og_user_node
  • Field_data_group_access
  • Field_data_group_content_access
  • Field_data_group_group
  • Field_data_group_register
  • Og
  • Og_membership
  • Og_membership_type
  • Og_role
  • Og_role_permission
  • Og_users_roles

Comments

Update: Issues addressed

deastlack's picture

I've made some progress folks!

I created a rule that redirects the user after login to their home group. works pretty good and includes a requirement that they change their password prior to going to their home group if its their first time logging in.

I created a patch for the Domain Navigation module with in Domain Access to alter the path that the domain navigator block sends the user to when the OG interface domain is selected. If any one is interested I'll include it here aftr additional testing and packaging.

I modified the User's groups view that ships with OG Extras, removing the default link of the title field and manually linking the title with the path information needed. Also removed the creation date.

Still trying to get a menu item to automatically return the user to their home group, but have created a block that does the same thing, so I have a fall back position if I cant get menu token to work (keeps running out of memory so I cant bring up the tokens list.

Working with the themer to link the header graphics to the correct destination. Portal logo to the primary domain; sub-domain logo to the users home group. Once the graphics are ready, we'll probably do a function in the template.php. BTW we're using the Adaptive Theme.

login redirect rule?

arjuna's picture

OG 7.2 is giving me a headache.
I had a redirect rule in og 7.1 to the groups home page upon login but that doesn´t work for 7.2.
The way you did it is much trickier. I only want them to land in their group upon login. I can´t get it right.
I stumbled upon this post. Could you give me a clou how you would approuch this.
I would appreciate some light in the dark.

Organic groups

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week