There are many complaints about tokens for parents not working as expected. For examples: see here, here. I propose to use the 'normal' way of asking token to supply token values using 'token_get_values()'. All tokens that are available on the parent node are then made available as parent-???? tokens.
When relativity_token_values() is called, we try to find out if the current node has a parent. If that is the case, I ask all tokens of the parent using the 'token_get_values()' interface. I've made sure we only do this once: we don't want to ask information on grandparents (and further), by introducing the $options['relativity'] parameter.
One minor thing: token.module has to be patched also.
This patch includes the patches from this bug.
| Comment | File | Size | Author |
|---|---|---|---|
| token.recursive.patch | 2.14 KB | thekk | |
| relativity.all_.patch | 9.49 KB | thekk |
Comments
Comment #1
thekk commented