Hi,

on a clean install I install OG and hansel modules. I then create a group type and a group content.

When in Hansel I try to create the rules for the article which is a group content I select "add og path" so I can have a link to the group in the breadcrumb.

I am then provided with the field "Organic group *Use only for these groups. This only applies when this is a group type." I think this is to specify a group or something. The field is required but there is no available options to choose from. Therefore I can't go further with the breadcrumb setting.

Any feedback is very welcome.

CommentFileSizeAuthor
#7 hansel_og.patch2.54 KBscoff

Comments

theullrich’s picture

Having the same problem.

theullrich’s picture

Still having trouble. Any updates on this problem?

bluestarstudios’s picture

Has anybody found a solution to this? I can't get it to work either...

theullrich’s picture

Intresting thing is the people over at Registration code seem to be having the same problem
https://drupal.org/project/regcode
However they have a patch.
https://drupal.org/node/1214458

I haven't tried it but i think it was the same problem that needs to be fixed after a change in the structure of Organic Groups.

bluestarstudios’s picture

Ooh. That's a start. I wish I knew how to create patches and what not. But lets see. Maybe i can figure out later on what they're doing in there...

jakonore’s picture

Priority: Normal » Critical

I change the priority of the issue to critical since it prevent anyone to use the OG integration. Just tried on a clean install with all latest code and there is no change.

scoff’s picture

StatusFileSize
new2.54 KB

It's not a proper patch, but it gets me a working hansel_og. There's no bundle type checking, but form options are there (showing content types that are group types).

I'm not sure that calling entity_uri() is the optimal way to get a group's node path in terms of performance. Maybe it's better to get an URL from what's available in og_context() return value (entity type, node id and group label are there).

  ["gid"]=>
  string(1) "1"
  ["etid"]=>
  string(1) "3"
  ["entity_type"]=>
  string(4) "node"
  ["label"]=>
  string(41) "Some Group Name"

Anyway, checking for content type is going to be expensive since there's no such information in context/group object. I'd turn it off, because op path often set inside "switch node type" rule.

Also there's a new dependency for hansel_og — og_context, which is now an add-on to og core.

liberatr’s picture

This patch worked for me.

aaki’s picture

Version: 7.x-1.2 » 7.x-1.x-dev

Since I couldn't find og_get_group_context() which is used to determine the group context in hansel_og-7.x-1.x-dev neither in og 7.x-1.x nor in 7.x-2.x I changed the affected version to 7.x-1.x-dev.

The patch from #7 does not work with og-7.x-2.x, but there is a issue and a patch, that should be tested that works at least in my environment.