I am using NodeFamily to set my parent-child relationships.
I have an Image cck content type containing an imagefield. An Image is always a child of either a Blog entry or a cck Album content type.
Using pathauto,
I would like to set the Image path according to it's parent (Blog or Album). I was looking for a [parent-type] token, but there isn't one.
So, I could just do something like: [parent-type]/[parent-title]/[child-type]/[child-title] or some variation.
Pathauto has some tokens that would work for this, I think the Referenced node title or Id would satisfy the [parent-title] and Node title or ID works for [child-title], but I am not sure about the other parts.
Would Node Family be the correct place to request the parent and child token support for pathauto?
thanks
Comment | File | Size | Author |
---|---|---|---|
#1 | nodefamily_tokens-5.x-1.zip | 1.15 KB | pianomansam |
Comments
Comment #1
pianomansam CreditAttribution: pianomansam commentedI came to need this functionality, saw that it didn't exist yet, and created pretty easily. Attached is my first Drupal module ever released to the public, so take it easy.