Reviewed & tested by the community
Project:
Content Taxonomy
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2009 at 05:56 UTC
Updated:
5 Jan 2012 at 23:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
imclean commentedCorrection, that should be: "Here's a quick patch to add the "termpath" token support to the first term of the vocabulary".
Comment #2
imclean commentedAdded -raw support. Also works with FileField to some extent.
Should probably check that an array is returned:
The above is not included in the patch. Will see what else needs fixing before I upload yet another one.
Comment #3
preetinder commentedThank you :)
Works for me.
CT is really a good module.
Comment #4
gg4 commentedany updates on this patch -- doesnt want to apply.
Comment #5
imclean commentedIt's not something I'll be maintaining. If the functions the patch provides haven't been included in the dev version then they probably never will be.
The patch is only a few lines so you could have a look at it and add them yourself. The file to look for is
content_taxonomy.token.incComment #6
gg4 commentedThanks for the reply. I did go ahead and just add the code myself. I really wish this would get included into the module — very useful.
Comment #7
simeHere is an updated patch.
This is extremely useful for filefield_paths module.
Comment #8
YK85 commentedsubscribing - would you kindly give an example of how this token will look?
Comment #9
simeSo I've confirmed the approach works. I've just added in a check to make sure there is at least one tid. RTBC
yaz085 a screenshot of what exactly?
Comment #10
gg4 commentedComment #11
gg4 commentedslightly updated.
Comment #12
magnus commentedThanks! I used patch in comment #9 and this works really great.
Comment #13
gordon commentedsubscribing
Comment #14
dave reidBe sure to wait until after #881270: [bookpath], [menupath], [*path] tokens not cleaned: aliases without punctuation removed, lower casing, etc. is resolved before committing this.
Comment #15
Andrew Gorokhovets commentedsubscribing
Comment #16
gg4 commentedThoughts on getting this to work with the latest Token and Pathauto devs?
::
Comment #17
gg4 commentedAlso requires commit of #932680: content_token_values() does not pass along $options to the called hook_token_values().
::
Comment #18
gg4 commentedNew patch.
Comment #19
magnus commentedI could't get #17 to work and hadn't the time to investigate further. The patch in #18 works great. Thanks a lot!
Comment #20
betsonthomas commentedsubscribing
Comment #21
splash112 commentedThis seems a very good feature. Any idea why it's not in dev?
Comment #22
splash112 commentedJust to expand on what I want to do.
I need to organise my sites catalog and products with term-paths. The standard Taxonomy/Pathauto solution has big troubles with multiple terms on 1 node.
I thought to be clever and use Content Taxonomy with 2 fields, 1 main field with 1 required term for a pathauto term/path and one for extra terms (multiple). Both should sync with the core Taxonomy module for breadcrumbs, Views and things.
Any idea if this would work with this patch?
Comment #23
splash112 commentedTested the patch against latest dev. Seems to be working flawless except for some whitespace BS from Git. Nothing really to worry about.
RTBC
Comment #24
dbassendine commentedWorks well for me. It would be great to see this rolled in, it's a very useful feature.