I've added a couple of classifications and added the Category Widget (modifying to use the custom classifications) to my page.
They works fine, but I want them to work together.
For example I have Type (For Sale, For Rent) and also Branch (Manchester, London, etc).
When I click For Sales, then click London, I want to see all the properties For Sale in London? How do I achieve this?
public class CustomNewsMasterListView : Telerik.Sitefinity.Modules.News.Web.UI.MasterListView
protected override void InitializeListView(IQueryable<
> query, int? totalCount)
// Implement your logic to filter the News Items list in 'query'
string contentFilter = "Visible = true AND Status = Live AND Category.Contains(\"Taxonomy ID\")";
var newQuery = query.Where(contentFilter);
Is there a simple way to set the filter expression in the view using the advance dialog box? i.e. Visible = true AND Status = Live AND MyClassification.Contains("Taxonomy ID of selected taxa in Category Widget?") AND MySecondClassifcation.Contains("Taxonomy ID of selected taxa in Category Widget), or am I barking up the wrong tree?
I guess what I am asking is, is there an expression to find out what the selected taxa currently is from the Categories Widget and using this in a filter expression?
It's a shame the Categories widget doesn't support multiple selections, is there a feature request for this? I can image a lot of people will be writing the exact same code thousands of times doing something with data that we all probably need to do in our project. If we had a built in control to do this, we could all spend more time in the pub.