Hi, I have a page setup with a repeater and a filter bar, basically the filter redirects the user to the same page with a parameter "Sort" added e.g. ~/Home?Sort=SomeSortCriteria
At the minute the repeaters "Order by" field just has {%Sort%} which works fine but when there is no parameter the items are not ordered so i would like to order the items a-z by default unless there is a sort parameter in the url.
I have been trying a number of macros along the lines of:
{(1)%{%Sort%}|(equals){(2)%EmptyString%(2)}|(truevalue){%Sort%}|(falsevalue)"DocumentName ASC"#%(1)}
desired outputs:
URL: Home.aspx | Order By: "DocumentName ASC"
URL: Home.aspx?Sort=SortCritria | Order By: "SortCriteria"
Any comments on where i am going wrong would be greatly appreciated.
Thanks, Anthony.