More in this section

Forums / Developing with Sitefinity / Display Categories in Document List

Display Categories in Document List

1 posts, 0 answered
  1. Reynaldo
    Reynaldo avatar
    10 posts
    25 Oct 2012
    05 Nov 2013
    Link to this post
    I have a page with a Download List widget that displays all documents that are in a particular library and within a specific category in a table view. The Download List displays the File, Type, Size and Upload Date. I want to be able to display what library and/or category the document belongs to.

    I see that you can edit the thumbanail template for the Download List and attempted adding the code for the category, but that code looks to me is to add a category and not to display it. See below code that is inserted:

    <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" />

    I was looking for the code to be something like the code for File or Type below:

             <telerik:GridBoundColumn UniqueName="title" HeaderText="<%$ Resources:Labels, File %>" DataField="Title" ItemStyle-CssClass="sfdownloadTitle" HeaderStyle-CssClass="sfdownloadTitle" />

                <telerik:GridBoundColumn UniqueName="documentType" HeaderText="<%$ Resources:Labels, Type %>" DataField="Extension" ItemStyle-CssClass="sfdownloadType" HeaderStyle-CssClass="sfdownloadType" />

    How exactly can you display the categories in the table list on a page?

    Thanks in advance for your help.
1 posts, 0 answered