radio buttons...combo box...recommendations please?
Vote:
My customer wants to be able to sort a newslist by date - either published date, created date etc.
He wants the editors to choose this as a radio button or combo in edit mode.
Is this possible? Any suggestions? I havent given this one much thought but my first instinct is radio button or combo box. But how?
/John
Hi, John.
There's already a built-in property for this purpose, called PropertySortOrder. In the property list when creating a new property on the page type, select "Sortorder for pages".
This will give you a drop-down list of the different sort orders provided by EPiServer.
The property itself returns an entry in the enum FilterSortOrder, which fits right into the NewsList's "SortOrder" property.
In the code you then write
Frank :)