Forum Discussion

Warren_Brill's avatar
11 years ago

I Need to Retrieve the Category Description Field and Display it On the Category Page. How?

The category description field is not exposed to the UI by default. Nor is there a setting in the Admin to display it. I need it to be visible, not just to search engines, but to members. What is the field identifier, and what options exist to retrieve this value and display it on the category page? This seems so simple, and I find it difficult to understand why it is yet solved.

  • The setting is called category.description.  You can certainly get it through REST API like this

     

    /restapi/vc/categories/id/[category id]/settings/name/category.description

     

    You could also try getting through the coreNode context object ${coreNode.settings.name.get("category.description", "")} but I haven't tested that one out.

  • KaelaC's avatar
    KaelaC
    Lithium Alumni (Retired)

    The setting is called category.description.  You can certainly get it through REST API like this

     

    /restapi/vc/categories/id/[category id]/settings/name/category.description

     

    You could also try getting through the coreNode context object ${coreNode.settings.name.get("category.description", "")} but I haven't tested that one out.

  • Warren_Brill - There is a workaround for this, i.e. you can use the following in the header of your wrapper or in a custom component. This will also include the title, which you can hide with CSS if need be, and display only the description.

     

    <@component id="common.widget.node-information"/>