Add Parent URL Alias Token

theunraveler - November 6, 2009 - 20:33
Project:Node Relativity
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

I thought it would be nice to have the parent item's URL alias available as a token in addition to the parent's menupath. This comes in handy especially when using pathauto on the child nodes.

So here's a patch! It checks to see if the parent node has an alias, and if it does it makes it available as a token. If not, it just defaults to an empty string like the rest of the tokens in this module.

AttachmentSize
relativity_url.patch1.24 KB
 
 

Drupal is a registered trademark of Dries Buytaert.