If I expose only one sort, I see this:
[sort name]
[asc/desc]
There's no point in the first dropdown: it has only one item. This should be shown as just text.
If I expose only one sort, I see this:
[sort name]
[asc/desc]
There's no point in the first dropdown: it has only one item. This should be shown as just text.
Comments
Comment #1
merlinofchaos commentedHm. There isn't a point, but I'm not sure there's any real need to have a special behavior for it, is there?
Comment #2
joachim commentedIt looks broken to the average site visitor:
'Oh here's a dropdown... what does it do? Huh, it has only one thing in it. That's st00pid. Broken site.'
Comment #3
merlinofchaos commentedYeah, but there are lots of ways you can configure a view that are going to be broken.
The real answer is "Don't configure it like that", isn't it? Unless there's a compelling reason to make that a valid configuration.
If anything I'd be more likely to add an analysis rule that says "Hey having just one sort exposed will look dumb, you sure you want to do this?"
Comment #4
esmerel commentedComment #5
Bilmar commentedI agree with merlinofchaos that you should just not expose the sort if it is just one exposed sort. Makes sense =)
However, I was wondering if this should/can be changed to a feature request to allow exposed sort as optional?
I hope I'm not missing anything obvious but optional exposed sort would add a '- None -' to the dropdown select list.
Thank you
Comment #6
Letharion commentedComment #7
esmerel commentedDocumented as part of #943536: Improve the Advance Help Documentation: sort section
Comment #9
dizarter commentedAnd how about making just the sort direction exposed if there is just one sort criterion exposed?