I thought it would be usefull to add categories in the output of my blogs RSS feed. To do this I changed the RSS transformation and used the blog posts documenttags to create the categories xml. The following steps will show you the needed adjustments.
I thought it would be usefull to add categories in the output of my blogs RSS feed. To do this I changed the RSS transformation and used the blog posts documenttags to create the categories xml. The following steps will show you the needed adjustments.
Step 1. Create a new function called GetCategories() which passes the DocumentTags of the blog post: <%# GetCategories(Eval("DocumentTags")) %>
Step 2. In the GetCategories() function, iterate through the DocumentTags, splitted by komma, and for each tag return the category xml: <category>" + tag + "</category>
Step 3. Your finished, go check the result!