Hi all,

I've to know if Context can be the solution to the issue described here: http://drupal.org/node/737292#comment-2711028

In particular I'd like to know if Context can keep "Organic Group Contexts" ouside OG nodes.

Thank you very much

MXT
(sorry for my bad english)

Comments

mxt’s picture

Please, no answers yet?

I'll try to describe my problem better:

My site scenario:

  • Users can have 2 roles: moderators or authors
  • I've used OG to create several groups/departments
  • Every department have one moderator and several authors
  • A user belongs to one and ONLY one department
  • Users belonging to a department can't view/edit other departments contents (so moderator of department A can view/edit only contents generated by authors belonging to the same department A)
  • When a content finish his workflow iter (revisioning, etc) moderator put in "visible to all" workflow state, and all users can view it regardless of their department
  • Users roles are setted up run time with OGUR module (so, no CORE roles are setted in any way, that's because OGUR want this to work properly). I have to use OGUR because I have to keep SEPARATION between departments

I have to find a way (a global variable, a session, a CONTEXT, I don't know) to keep Organic Groups context OUTSIDE Organic Groups pages, such as Views pages for example. That's why OGUR roles works only under an Organic Group context, and outside it my users lose their roles!!! The consequences are the following:

  • Views access restrictions by user roles doesn't work because Views checks the CORE role of a user, and my users doesn't have CORE roles, but only "OGUR roles" that works ONLY an OG context.
  • Rules module has the same problem like Views: it cannot chek OGUR roles ouside OG context and I cannot setup rules conditions properly.
  • Views Bulk Operations roles restrictions: the same. It cannot check runtime OGUR roles but only CORE roles

Please help me! I'm desperate!

Thank you very much

MXT

entrigan’s picture

I am also interested in this. Have you taken a look at #689972: Context module support ?

yhahn’s picture

Status: Active » Closed (won't fix)

No, but one approach to this problem is to Spaces OG & PURL to sustain an OG context using a URL path prefix.

mxt’s picture

Thank you for your answer Yhahn,

I've installed Spaces 3 OG, PURL, Features, I've read all the (poor) documentation around these modules, also watched Spaces 3 DEMO video, but I can't understand how to obtain what I need.

Can you please write a step by step to follow?

Thank you very much!

MXT

kyle_mathews’s picture

MXT, it's a rather high order to ask for step-by-step instructions on how to build out your relatively complex site. There's a reason that Drupal developers are paid tens of thousands of dollars to build complex sites -- because it's really hard to do and they've spent years learning the skill.

The simplest way to understand how all these tools work together is for you to download Open Atrium, install that and look around how DevSeed has built things there. You might also try the #open_atrium irc channel and see if anyone can help there.