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

CommentFileSizeAuthor
#1 nodefamily_tokens-5.x-1.zip1.15 KBpianomansam
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pianomansam’s picture

Status: Active » Needs review
FileSize
1.15 KB

I 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.