Hi
Thanks for the reply, even though you are on holiday!
Worked out how to do it, but it involves having different url’s for the different status - so I’ve got:
/segment_1/segment_2/Classifieds
- /Approved
- /Unapproved
- /Cancelled
- /Deleted
and my code is:
{exp:reefine channel=“classifieds” parse=“inward” method=“ajax” show_expired=“yes” show_future_entries=“yes”
filter:fields=“title”
status=’{if segment_4}{segment_4}{if:else}Approved|Unapproved|Cancelled|Deleted{/if}’
}
So /segment_1/segment_2/Classifieds show’s all the defined status, but /segment_1/segment_2/Classifieds/Approved will only show the approved entries.
I presume that it would be simple enough to get status filters working within the one page view - something like:
status:default="Approved" status:list="Approved|Unapproved|Cancelled|Deleted" status:type="list"
So initially it would default to all entries that have a status of ‘Approved’. But also allow a filter list to be built supplying the other filters. If a different status, or multiple status, is selected, then these would be returned.
status:default="Approved|Unapproved|Cancelled|Deleted" status:list="Approved|Unapproved|Cancelled|Deleted" status:type="list"
In the above, all the entries with any of the specified default status’s would be returned, along with the filter list with all the items selected/checked.
Regards
Ben
|