Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
ajax system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2006 at 19:21 UTC
Updated:
21 Nov 2012 at 02:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
airblaster commentedI think this should be added to drupal as soon as possible.
Would probeably help to avoid lots of unnecessary double posts in the support forums!
Comment #2
add1sun commentedThis works fine for me so I rerolled it against HEAD. This is a great little addon so it would be cool to into core, if possible, since I am sure I will end up using this patch on number of sites.
Comment #3
RobRoy commentedCode style issues:
- array should be
$foo = array(
'#value' => 'blah',
);
- Inline comments use // and sentence capitalization with a period
- Those strings should use t() and need sentence capitalization maybe (or lowercase if the other stuff on the form is like that)
Comment #4
RobRoy commentedGoing to wait for 6.x-dev.
Comment #5
RobRoy commented- If block indentation needs another space
- And cases should be indented from switch
Comment #6
Steven commentedYou can already have search results by date by configuring the ranking in the administrator area. IMO this is not something that the end-user should have to change. If your site has lots of new content, set up the sort order that way.
Comment #7
bjaspan commentedSorry, doctor, but I'd like a second opinion. :-)
Setting the search results sort order via the admin settings is insufficient. We have an 'Advanced search' form for a reason. Sometimes users want to control the type or terms of the results, and sometimes they want to control the primary sort key. Why refuse them that option?
add1sun has supported the patch and confirms it works. I have applied RobRoy's code style fixes (except for "if block indentation needs another space"; all if blocks in the file use two-space indent, just like my patch) and re-rolled the patch for HEAD.
Comment #8
Steven commentedDo not set your own patches to "ready to be committed". Your patch does not even conform to code style.
It arbitrarily adds date sorting options, while completely ignoring the other options that node search has. If you want a sort UI for end-users, it should allow all sorting options, or none at all. Plus, the proposed solution is very inflexible. If I already set up my site to sort by date, I end up with a useless control (as 'score' will be the same as 'newest first').
I'm not against sorting options per se, but it needs to be done properly, in a flexible and usable manner. This patch is just a hack, and as the maintainer of Drupal search I don't like it.
Comment #9
RobRoy commentedRegarding that if block, the problem is that you're using TABs instead of 2 spaces.
http://drupal.org/node/318
Comment #10
Anonymous (not verified) commentedI'm reopening this issue in support of http://groups.drupal.org/node/16078. I don't think we should limit the functionality of the advanced sort to the administrator. Let's see if we can roll a patch for D7.
Comment #11
Anonymous (not verified) commentedMaking this a usability issue.
Comment #12
cameron tod commentedShall we close this, now that Views is in core for D8?