Hello,
Thank you for the additional clarification. I added the UniView to an ASPX page and used the following code to filter by category and tags:
string Param1 = QueryHelper.GetString("tagz", "");
string Param2 = QueryHelper.GetString("catz", "");
string where = "DocumentTags LIKE '%" + Param1 + "%' OR DocumentID IN (SELECT DocumentID FROM CMS_DocumentCategory WHERE CategoryID='" + Param2 + "')";
TreeProvider tree = new TreeProvider(CMSContext.CurrentUser);
DataSet documents = tree.SelectNodes(CMSContext.CurrentSiteName, "/%", "en-us", true, "CMS.BlogPost", where, "");
if (!DataHelper.DataSourceIsEmpty(documents))
{
this.UniView1.DataSource = documents;
this.UniView1.DataBind();
}
With this approach you wouldn't have to modify the Web part, just configure it for the individual page. Would this approach work for you? Please let me know if you have any questions. You can test this by manually adding the ?catz=X&tagz=Y querystrings to the page.