How to get BlogPost categories and tags?
Hello
How can I get the Category and Tag taxons associated with a BlogPost item?
Thanks
Ryan
Hello Ryan,
Please take a look at this post
www.sitefinity.com/.../how-to-filter-news-by-custom-classification.aspx
All the best,
Ivan Dimitrov
the Telerik team
Hi Ivan
That post doesn't seem to be what I'm looking for.
In a Listview I have
RadListViewDataItem item = e.Item
as
RadListViewDataItem;
BlogPost bp = (BlogPost)item.DataItem;
Hello Ryan,
You can use GetValue extension method and pass the "Category" or "Tags" as a parameter or you can use TypeDescriptior.GetProperties(object)
Best wishes,
Ivan Dimitrov
the Telerik team
Got it
var cats = (Telerik.OpenAccess.TrackedList<System.Guid>)bp.GetValue(
"Category"
);