Unitag makes the taxononmy synonym feature useful; if you have a taxonomy term for "California", and "CA" is a synonym, it is very useful to to be able to type "CA" when tagging the node, and still have the taxonomy term show up as "California".

This patch adds symmetry to that situation by shortening tags down to their shortest synonym in teaser blocks, so "California" becomes "CA" in a view that shows a list of teaser nodes, but still appears in its full form on the full node view.

Must be enabled via the 'shorten-teaser' preference in the Unitag settings page to function.

CommentFileSizeAuthor
unitag-shortest-synonym.patch3.47 KBgreg.1.anderson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Zen’s picture

I'm not entirely convinced about the genericness of this feature. I'd like to hear from other users who might find such an option handy along with their use-cases.

Thank you for the patch :)
-K

greg.1.anderson’s picture

Since the original patch was posted six months ago with no outside feedback, I think it's unlikely that you will get any now. Even though it is a -1 for my own patch, I will mention that in my use case, it turns out that the shortest synonym is not always the most appropriate short form that one would like to see in teasers, so this feature blocks users from entering really short synonyms if they don't want to make their teasers too obscure. I'll probably fix this problem after I upgrade to D7 by adding an explicit field to my taxonomy terms, and use that in my teasers.

I don't know at this point if that implementation might become a general feature of unitag-7.x, or if it might be backported to unitag-6.x. It might just be custom code in my theme layer that references the text field I attach to my taxonomy terms.

greg.1.anderson’s picture

Status: Needs review » Needs work

To be more explicit, I recommend that you either just close this 'will not fix', or set it to 'needs work' if you want to see follow-up implementations per #2 later. Heck, I'll set it to 'needs work' now, and you can close it if you want.

Zen’s picture

Roger, Roger. I'm happy to just let this ferment :)

-K