Sorting a Simple list Classification.

Posted by Community Admin on 04-Aug-2018 22:47

Sorting a Simple list Classification.

All Replies

Posted by Community Admin on 03-Jul-2012 00:00

In a module created in the module builder we have it associated with a Simple List (Industries).  When managing the industries through the Sitefinity Classifications module they are sorted alphabetically.

The control for displaying the Industries in the custom module uses the following code to display the list of industries, but the industries do not appear sorted on the site front end.  Is there an easy way to adjust the classification sorting when using the FlatTaxonField control?

<sf:FlatTaxonField
        HideWhenNoTaxaFound="true"
        Title="<h2>Industries</h2>"
        runat="server"
        DisplayMode="Read"
        WebServiceUrl="~/Sitefinity/Services/Taxonomies/FlatTaxon.svc"
        TaxonomyId="3143381f-bef3-473e-b8c5-3d7f95f1247b"
        AllowMultipleSelection="true"
        TaxonomyMetafieldName="industries"
        Expanded="false"
        BindOnServer="true"
        />

This thread is closed