Ran into a slight inconvenience. Looked through the token code in core and it's a little beyond my abilities so thought I'd put in a request. I would like to replace a token with it's parent. D7 would look something like this:
[node:TERM_REVERENCE_FIELD:parent]
This works fine in Backdrop:
token_replace('[node:field_category]', array('node' => $node))
However, this does not work (it works in D7):
token_replace('[node:field_category:parent]', array('node' => $node))
PS: As a "work-around" (to get the parent), I'm using a couple Taxonomy functions: taxonomy_term_load($tid) taxonomy_get_parents($tid)
Recent comments
Heya, I'm in the final stages of preparing some Fivestar Module (fivestar) documentation. I am toying with the idea of publishing as an e-book. All told, I think the e-...
Fivestar Module Finalization?
Clear caches?
Admin icons are displayed at the wrong size
Heya @DrAlbany, Yes, if you could add me as a contributor that would be great. I'm doing a bunch of "triage" on my site these days, fixing stuff and (slowly)...
Ubercart Product Kit(s) - Advice, Tips, Lore, Acumen
Wow! @bugfolder What a fantastic response! I am so grateful for the effort you obviously put in. I just wanted to give you some FF on the sheer size and depth of...
Ubercart Product Kit(s) - Advice, Tips, Lore, Acumen
Hi..., Our ubercart.dev site is a work in progress... I'm happy to add you as a contributor etc... UC is something I use and want to help the documentation live on...
Ubercart Product Kit(s) - Advice, Tips, Lore, Acumen