Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
taxonomy data
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Nov 2009 at 17:34 UTC
Updated:
23 Oct 2017 at 09:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dwwApplies cleanly to both DRUPAL-6--2 and DRUPAL-6--3 branches. Applies with offset to DRUPAL-7--3. Only tested on DRUPAL-6--2.
Comment #2
dwwFixed minor typo in previous patch that broke the checkbox which somehow slipped in.
Meanwhile, I'm wondering how summary views ever work if you have a term id argument and use the "convert name to tid" or "convert name or synonym to tid" validation behavior. Seems like the summary view defaults to links like:
http://example.com/view-path/123
and then the arg validator can't find a term name or synonym with the string "123" and you get a 404...
Seems like this new setting needs a few options to really solve this problem, e.g.:
Links for summary view:
( ) Term ID (default)
( ) Term name
(x) Term synonym if defined, default to term name
??
Comment #3
merlinofchaos commentedIn fact, summary views don't work well at all with validators that do conversion, because validators currently do not have a way to back-convert. That's a known limitation that I just haven't gotten around to working on.
Committed to the 3.x branch. Not sure I want to do this on 2.x since I'm trying to limit new features there, now. Let me know if you have a compelling need for this in 2.x.
Comment #5
jfall commentedEarl's already said he's not fixing this in the 2.x branch, but here's a small patch (more of a hack) that I used to make my summary views work.
View has a Term ID argument, with Convert to Term validator so I can use nice URL's, with synonyms on terms containing special characters (as suggested above). Works like a charm.
But the summary view is messed up because it lists term ID's which don't validate.
My hack: allow the 'convert' validator to validate tid arguments in addition to terms and synonyms. Works for me - hope it helps someone else.
Comment #6
vlooivlerke commentedHi
The views 3 patch works great, how can I add:
Replace spaces with dashes
and make link test lower case
someting like: WHERE (replace(ts.name, ' ', '-')This feature can be done in taxonomy term name summery sort.
Thanks
Comment #7
mustanggb commented