ボキャブラリ・カテゴリの仕様
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
問題
- ボキャブラリ-カテゴリの名称・IDを、一覧で出力できますか。
- 環境間でエクスポート・インポートする際、IDはどのように生成されますか。
環境
解決
-
UI上に出力する機能は、基本機能にございません。
データベースでクエリを実行するか、APIを使う事で取得が可能です。
ぞれぞれ、以下のテーブルに格納されています。
ボキャブラリ一覧:
AssetVocabulary
カテゴリ一覧:
AssetCategory
AssetVocabulary.vocabularyId = AssetCategory.vocabularyId となります。
どのボキャブラリ配下のカテゴリであるか、参照可能です。
各ボキャブラリ配下に設定済みのカテゴリについては、API:getVocabularyCategories()が利用できます。
- エクスポート・インポート時にカテゴリIDは自動採番されます。
did-this-article-resolve-your-issue