Hello

Is any way to add CCK taxonomy field for token support? I know you have only taxonomy term-vocab, but in our scenario we need CCK taxonomy fields to generate Auto node title like [field_taxonomy].

Also we definitely pay for this support.

Comments

wim leers’s picture

autonetex has hired me to add support for this, and I've now implemented this. I'm just posting here to make sure nobody else starts working on a duplicate patch.

I'll post a patch soon.

wim leers’s picture

Assigned: autonetex » wim leers
Status: Active » Postponed (maintainer needs more info)
wim leers’s picture

Project: Token » Content Taxonomy
Version: 5.x-1.7 » 5.x-1.x-dev

Forgot to change that. This is an issue for Content Taxonomy, NOT for Token. Token includes the necessary functionality for core modules and for the default set of CCK modules, not for (CCK) add-on modules. It could easily be relocated though.

wim leers’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.52 KB

And here's the patch!

morphir’s picture

StatusFileSize
new1.52 KB

cleaned up some code. Where I removed the " and added ' instead (better as in faster code) have not tried the patch yet. (also, cleaned up some grammar)

wim leers’s picture

Hehe thanks morphir. I just copy/pasted the strings from the taxonomy token implementation though. :)

csc4’s picture

+1 for this patch being committed too please!

xjm’s picture

Nice work. Just what I was looking for.

wim leers’s picture

Category: support » feature
StatusFileSize
new2.04 KB

Patch updated. It apparently didn't work correctly in all cases, because of some crappy internals of content_taxonomy: the structure of "content taxonomy field objects" can vary greatly, depending on the moment. Or maybe it's just CCK's fault.

I've documented this in the patch as well, because the code makes no sense at all at first sight, although it's very simple.

wim leers’s picture

StatusFileSize
new2.09 KB

Patch updated once more, to cope with *yet another* possible form of the passed in $object parameter... sigh.

mh86’s picture

Thanks for your patch and your work. I'll take a look at this soon

mh86’s picture

Status: Needs review » Fixed

this patch has been committed. thanks for your work and your patience!

matthias

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

spiffyd’s picture

Does this patch include tokens for the taxonomy terms' URL aliases?