Closed (outdated)
Project:
Token
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2010 at 13:20 UTC
Updated:
24 Apr 2024 at 18:38 UTC
Jump to comment: Most recent
Comments
Comment #1
dave reidComment #2
summit commented+1 for this token! to use it in a page-title.
I would like the taxonomy parent term and top term in the taxonomy tokens, it's missing right now.
greetings, Martijn
Comment #3
JimNastic commentedI have a similar requirement. I'd like to see a list of all parent terms in situations where there are multiple parents. By the way comment #9 here: http://drupal.org/node/654766 seems to be seeking to do something similar
Comment #4
willeaton commented+1 for this token for use in page titles
Comment #5
willeaton commentedOK, I have written some code that worked for me although Im sure it requires a whole host of other changes to make it more accurate or something...
In token/token_taxonomy.inc I have made the following changes...
has changed to
and further down...
has changed to...
Comment #6
Branndon commentedThanks Willeaton, that gets [parent-term] to show up on my admin/help/token page, but not in my custom breadcrumbs page where I can use tokens to create breadcrumbs. Any ideas why not? When I put [parent-term] in the custom breadcrumbs, it shows me [parent-term] not any token value.
Comment #7
willeaton commentedSorry, I don't really understand how tokens work. I just took the existing file, added a few lines and the new token appeared for me in the nodewords module configuration page.
Comment #8
Beerlover88 commented+1
Comment #9
alexmoreno commentedi guess everyone knows, but never edit the code of a contrib. or core module, unless if you are building a patch and you really know what you are doing.
Instead, for this case you can create custom tokens in different ways:
Comment #10
bluegeek9 commented