Fork me on GitHub
2sxc 9.0 for DNN 7 to 9
Website Builder, Content Manager, App-System: free and amazing - done your way
You are here: Home  >  Docs  >  Feature

RelationshipFilter helps find all entities having a tag or category

Introduced in Version 06.01.00
Demos of this feature

Use for example as follows (this examples gets all questions of a specific category):

@functions{

// Prepare the data - get all categories through the pipeline

public override void CustomizeData()

{

// new features in 6.1 - the App DataSource CreateSource<App> and also the RelationshipFilter

// Just add the items which have the relationship to the category in the URL

var qsOfCat = CreateSource<RelationshipFilter>(App.Data["QandA"]);

qsOfCat.Relationship = "Categories";

qsOfCat.Filter = "[QueryString:Category]";

Data.In.Add("QandA", qsOfCat["Default"]);

}

}

Tags for this feature

2serve . 2invent . 2create is 2be.