Changes to the News - Single template

Posted by Community Admin on 03-Aug-2018 18:02

Changes to the News - Single template

All Replies

Posted by Community Admin on 20-Nov-2010 00:00

Hey,

I want to display the category a news item is associated to and modified the News -Single item template and added the following markup:

Category: <br/>
<sitefinity:HierarchicalTaxonField ID="HierarchicalFieldControl" runat="server" TaxonomyId="E5CD6D69-1543-427b-AD62-688A99F5E7D4" DisplayMode="Read" WebServiceUrl="~/Sitefinity/Services/Taxonomies/HierarchicalTaxon.svc" Expanded="false" TaxonomyMetafieldName="Category" ExpandText="ClickToAddCategories" BindOnServer="true" />

Now when viewing a single news item, I do not see the categories. Is this a known bug?

Update:

Never mind I solved it. I didnt know that I had to select the default template from the news control. I thought it would select the first available by default.

This thread is closed