Can I use pathauto for OG ?

public
group: Paths
avior@drupal.org - Fri, 2008-04-25 06:46

Hi All
I have searched this group & the docs in drupal main site and didn't find the answer, so i am trying here :

Can I use pathauto (with token) that all the posts in group will have path like

groups/{group_path}/[nid]

I want the user to set a path for the group manually (it's hebrew site to i dont want to use [ogname] ), and from than on every post in the group will have this pattern

the issue is that posts can be public and can be a group post , so if i use "Node path settings" it is global

so my questions are :
1. Is this possible to know the group path (something like [termalias] )?
2. is it possible to set pathauto like above that it will be "smart" to know if it's posted public or in a group and the path will bw set as above.

Thanks Avior

depends

greggles's picture
greggles - Sat, 2008-04-26 19:24

That depends on which version of OG you are using. If you are using the most recent version (or one slightly older too, perhaps) then there is a token to use. I forget exactly what it is, so you'll need to look at the tokens available for nodes to find it.

--
Open Prediction Markets | Drupal Dashboard


I only see two tokens

ariana - Mon, 2008-05-12 19:23

There is only grouptitle and group id, nothing like group_path, which is what we are also looking for! Would be so useful.. perhaps a suggestion for OG rather than path auto?

correct

greggles's picture
greggles - Mon, 2008-05-12 21:54

You'll want to file a feature request for the OG module (with a patch, if you can).

--
Open Prediction Markets | Drupal Dashboard


after I posted here I found

ariana - Tue, 2008-05-13 14:59

after I posted here I found this patch. It's working great!
http://drupal.org/node/255335