Note: This is on the "seach multiple content types" tab...
I was looking at the search_common template to change the default sort results by option to date (instead of relevance) and found the following. It looks like date is already selected="selected" in the search_common template, but for some reason, when you display the page, it renders out a second selected="selected" option for relevance (so there are two and by default the second overrides the first).
Is this normal behavior? I would think there should only be one selected="selected" option...
For the time being, I commented out the <option value="relevance" selected="selected">Relevance</option> ... but I just wanted to see if this was normal behavior.
I was looking at the search_common template to change the default sort results by option to date (instead of relevance) and found the following. It looks like date is already selected="selected" in the search_common template, but for some reason, when you display the page, it renders out a second selected="selected" option for relevance (so there are two and by default the second overrides the first).
Is this normal behavior? I would think there should only be one selected="selected" option...
Code:
<ul class="multifield group"> <li> <select name="sortby" tabindex="1"> <option value="title">Title</option> <option value="dateline" selected="selected">Date</option> <option value="user">User Name</option> <option value="relevance" selected="selected">Relevance</option> </select> </li> <li> <select name="order" tabindex="1"> <option value="descending" selected="selected">in Descending Order</option> <option value="ascending">in Ascending Order</option> </select> </li> </ul>
Comment