Hi,
I use the argument Taxonomy: Term synonym in one of my views.
The reason is the following:
My taxonomy-terms sometimes include German special characters like 'ä', 'ü' or 'ö'. To have better-readable urls I created synonyms for these terms where I transformed the 'ä' to 'ae', the 'ü' to 'ue' and the 'ö' to 'oe'.
The view and the filtering by the synonym taxonomy terms works perfectly.
What I am trying to do is the following:
I want the title and breadcrump of the view to show the original taxonomy term when it is called with the synonym.
So if the view is called with my_view/muenchen, the title and breadcrump should print München.
(the taxonomy term is München and has a synonym of Muenchen).
Is this doable somehow?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 718220-3.views_.taxonomy-synonym-argument-title.patch | 2.89 KB | joachim |
| #4 | 718220.views_.taxonomy-synonym-argument-title.patch | 2.89 KB | joachim |
Comments
Comment #1
esmerel commentedThis is not possible within the current UI; you could potentially do it with some custom code. Otherwise, it'd have to be a feature request.
Comment #3
eric.smith commentedI was trying to do exactly this and found a very useful tutorial here: http://drupal.org/node/365418
Where ducdebreme has the php validator code snippet, use:
It worked great.
Comment #4
joachim commentedIt works, but it prevents you from using any of the built-in validators.
Hence reopening.
Here's a patch which adds a handler class for the term synonym argument. This provides an option to use the base term name for the title.
I've tried to inherit breadcrumb support from the regular taxonomy term argument, but I don't need this for my current project, so that part needs a little more work.
Comment #5
joachim commentedSlightly clearer title.
Comment #6
joachim commentedOops -- I missed a string in the form definition.
Comment #7
summit commentedSubscribing, greetings, Martijn
Comment #8
bartezz commentedsubscribe
Comment #9
asb commentedA status update would be great!
Comment #10
mustanggb commented