function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Charline MitchenerCharline Mitchener 

knowledge:categorylist - display in a list not select/drop down

I am trying to work out how to display data categories in a list on my side bar.

I found the below code in the Visualforce Guide and it works great, but I don't want the 'select/drop down' method, I want it to display in a list, can someone let me know how to change it to a listing instead? - 


<select name="category"> <knowledge:categoryList categoryVar="category" categoryGroup="product" rootCategory="phone" level="-1"> <option value="{!category.name}">{!category.label}</option> </knowledge:categoryList> </select>
 
RishavRishav
Hii charline,
                   use like this  
<select name="category">
    <knowledge:categoryList categoryVar="category" categoryGroup="Transportation_Asset_Management_TAM" rootCategory="All" level="-1">
        <option value="{!category.name}">{!category.label}</option>
    </knowledge:categoryList>
</select>

If your problem solve then mark kudos otherwise ask your doubt.

Thanks
Rishav