make a parent-type and child-type token available to pathauto
| Project: | Node Family |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
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

#1
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.