Hello,
For a site, I use Organic Group. I created 4 nodes as a group, with the title and alias /group1, /group2, /group3, /group4
I would make the whole site is based on these four groups at the url, ie that every time my urls are of the type:
www.mondomain.com/group1/xxxx/yyyyy
www.mondomain.com/group2/xxxx/yyyyy
I can make my OG context is determined by the arg(0) my url, but for now, I can not build the url system.
For example, when I create views or panels, I would define type URL %/xxxx/yyy, but Drupal does not accept wildcard in first position.
Is what you can help me? How can i make my OG Group in path of the url?
thank you,
Comments
og_token
If you use og_token (https://www.drupal.org/node/1930132), it enables you to define paths like this
e.g.
assuming you are using pathauto and have group_content,
go to: admin/config/search/path/patterns
and set group content pattern to:
[node:og-group-audience:first]/[node:content-type]/[node:title]
Also the crumbs module can be of help too.
Thanks for your reply.
Thanks for your reply.
I finally user OG Purl (https://www.drupal.org/project/og_purl) who let me choose a path prefix for each group.