When creating a context (in this case by taxonomy term name), I'd like to have the same functionality as with Views 2, which allows one to convert hyphens to spaces. Thus you can have http://example.com/mypanel/blue-sky rather than "http://example.com/mypanel/blue sky" or "http://example.com/mypanel/blue+sky".
However, I do not see an option for this. Am I being blind? Or would this be a feature request?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | space_to_hyphen-530174-6.diff | 3.23 KB | aaron |
| #5 | space_to_hyphen-530174-4.diff | 3.17 KB | aaron |
| #3 | space_to_hyphen-530174-3.diff | 2.7 KB | aaron |
Comments
Comment #1
merlinofchaos commentedThis would probably need a custom argument handler or something similar.
Comment #2
aaron commentedwell, this is becoming a bit of a blocker for my particular use case, so i'm going to dig into this now.
Comment #3
aaron commentedhere's the form stuff -- still trying to figure out what to do with $conf once we collect it...
Comment #4
aaron commentedComment #5
aaron commentedthis one should work, but it doesn't. what am i doing wrong?
Comment #6
aaron commentedok, this should work as advertised now...
Comment #7
petrelharp commentedAwesome. It works for me. Thanks a bunch.
Comment #8
merlinofchaos commentedOk, here's what I want for this to go in:
Taxonomy term name should be split out from Taxonomy term ID argument. However, it needs to be done in such a way that older configurations will still work; so the original argument should still be able to accept a term ID. Possibly the easiest way to do that is to introduce tid.inc and term_name.inc and deprecate term.inc entirely but leave it so that it can still be used. It'd be even better if we introduce a way to remove it from the UI but still have it in the background That can come later.
Then, taxonomy term name can have an option to translate dashes to spaces.
And the new user name argument should have the same support.
Comment #9
summit commentedSubscribing, greetings, Martijn
Comment #10
dalehgeist commentedSubscribing - I need this for user name.
Comment #11
japerryClosing this issue as outdated as Drupal 6 ctools is not supported. If this issue is relevant for Drupal 7, feel free to re-open and mark for Drupal 7 (or 8)