Adding Normal Sort to Sort Dropdown
Posted: Fri Feb 22, 2008 8:15 pm
Good Day All
One disappointing issue we had with the sort feature was that it totally ignored the product sort order set in the Admin. Also, if you highlighted a category in the menu, the subcategories in the content area were not in the order selected in the Admin either.
A very simple fix.
In the CategoryGridPage.ascx code (whichever grid you have chosen), look for a control called
Add this code to top of the list items:
This will create an sort item in the dropdown called Normal, the value it returns is nothing, and will be the default when the page opens, which will sort in the order that has been selected in the Admin.
One disappointing issue we had with the sort feature was that it totally ignored the product sort order set in the Admin. Also, if you highlighted a category in the menu, the subcategories in the content area were not in the order selected in the Admin either.
A very simple fix.
In the CategoryGridPage.ascx code (whichever grid you have chosen), look for a control called
Code: Select all
<asp:DropDownList ID="SortResults" runat="server" AutoPostBack="true" CssClass="sorting" EnableViewState="false">
Code: Select all
<asp:ListItem Text="Normal" Value=""></asp:ListItem>