Closed (fixed)
Project:
Organic Groups
Version:
5.x-8.x-dev
Component:
og.module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 May 2008 at 16:23 UTC
Updated:
30 Sep 2011 at 17:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
moshe weitzman commentedInteresting. Are you using pathauto for groups as well? If so, couldn't you mimic its logic for group posts and just add a node title at the end (for example).
Comment #2
jody lynnYeah, I'm using pathauto for groups but I can't mimic the logic because I'm using tokens for the groups other than just [node-title] or [node-id]. (The group paths are based on taxonomy of the group node in my case, but you would have the same problem if you based your group's paths on a field within the group or many other tokens or if you manually assigned group paths.)
Comment #3
ariana commentedThis is just what we needed! We used your patch and it's working great. Thank you so much.
Comment #4
owen barton commentedJust hit this same issue myself, and came up with a near identical patch. My version uses the same naming/description convention as the pathauto URL alias tokens (e.g. bookpathalias, termalias etc), which I think is more correct (path should indicate only a system path such as node/123, but we actually want the alias) and is better for consistency. There is also a minor indenting issue that is resolved.
The reason why I need this is for breadcrumbs with custom_breadcrumbs or workflow_ng - I can use node/[node:og-id] to create the alias to the group, but this falls down when I want to link to a sub-path of a group (i.e. groups/blah-group/activities) but but making "groups/blah-group" available as a token I can do this. I can't add the title to the path as Moshe suggests because it needs to be pathautoized (i.e. I would get "groups/Blah Group/activities", which doesn't work).
I am happy to roll a D6 patch if anyone is interested.
Comment #5
daniorama commentedInterested! Maybe you could help with creating the same for OGsubgroups in D6. I tried to create Breadcrumbs and Paths, but I didn't manage to do it... Any help would be really appreciated. Thanks!
Comment #6
cncoleman commentedA D6 patch would be very helpful. Thank you.
Comment #7
emlomar1 commentedThank you!! That's exactly what I was looking for :)
Comment #8
owen barton commentedUpdated patch for 5.x-8.x
A Drupal 6 patch would be welcome :)
Comment #9
drupalok commentedA Drupal 6 patch would be VERY welcome :)
Comment #10
sethcohn commentedLooks good to me. I'll roll this into the next OG 5.x version...
Here's a patch for 6.x-2.x-dev so we stay consistent.
Comment #11
moshe weitzman commentedCommitted to 6--2. Seth will commit to 5--3
Comment #12
steinmb commented