0

I am using Organic Groups for as a solution for Drupal Sub sites, it is working perfectly, even themes are switching via Organic groups theme but I am having problem with /user/register and /user pages.

I want to pass context to user pages like user/groupname/register or user/groupname , so how can I do it ? because /user currently throws me out of the currently active theme for Organic Group.

Also one more thing, the Group Id which I want to pass should be as alias?like pathauto paths.

1 Answer 1

0

I would probably look at PURL for this, an API to make a part of a URL persistent. PURL itself does nothing since it's an API, but you can get started with OG Purl. Be warned, it's more advanced to be creating your own bridge like OG Purl does. A lot of motivation is required :)

4
  • thanks for your reply...Be warned, it's more advanced to be creating your own bridge like OG Purl does. A lot of motivation is required :)..can you please elaborate it? You mean to say that OG Purl is tough to consider? Also how about SPaces module?does it do the same? Apr 11, 2014 at 6:20
  • I think Spaces is not maintained as much as OG. I would suggest anyhow to try OG Purl, it might do the trick for you with little config.
    – Kevin
    Apr 11, 2014 at 6:33
  • Thanks for your reply...Can you please tell me from where can i use PURL..because its documentation says it is an API module..and doesnt seem to have any UI...i have now spent almost 3 hours even on google but to no avail... Apr 12, 2014 at 7:30
  • /admin/config/search/purl provides you an interface. You need to programmatically create a Provider for ex based on your path. Next up you can programmatically create modifiers. A modifier is the fixed part in the URL, the ID is your choice to give a meaning to that fixed part. OG Purl gives examples on this.
    – Kevin
    Apr 14, 2014 at 5:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.