Displaying the news category field
<%# Eval("Author")%></a> on <sf:FieldListView ID="PostDate" runat="server" Format=" PublicationDate.ToLocal():MMM dd, yyyy" />Hello Maciej,
You should add the following control in the template
<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" />
Best wishes,
Ivan Dimitrov
the Telerik team
Mhm, thanks for fast answer, buti already knew this way.
I need to put all of this in one line. Look at that:
<div class="post-info" !important> <p class="post-meta" !important> Posted by <a href="#"> <%# Eval("Author")%></a> on <sf:FieldListView ID="PostDate" runat="server" Format=" PublicationDate.ToLocal():MMM dd, yyyy" /> <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" /> </p> </div>Hi Maciej,
You can use css to change the appearance of the result.
All the best,
Ivan Dimitrov
the Telerik team