legacy-knowledge-base
Publicado Jun. 25, 2030

Vocabulary Category Specifications

written-by

Shimada Taro

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • Can you output the names and IDs of the vocabulary categories in a list?
  • How are IDs generated when exporting and importing between environments?

Environment

  • DXP 7.0+

solution

  • Output on the UI is not a basic function.
    It can be obtained by executing a query in the database or by using the API.

    Each is stored in the following table
    Vocabulary List:
    AssetVocabulary

    Category List:
    AssetCategory

    AssetVocabulary.vocabularyId = AssetCategory.vocabularyId
    It is possible to refer to which vocabulary the category is under.

    For categories already set under each vocabulary, the API:getVocabularyCategories()is available.
  • Category IDs are automatically numbered when exporting and importing.
did-this-article-resolve-your-issue

legacy-knowledge-base