legacy-knowledge-base
公開されました Jun. 30, 2025

カスタム・ドロップダウン・アイテムが無効になっています。

written-by

Cristina Rodriguez

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

問題

mecalux_disabled.png

Environment

  • Liferay DXP 7.4

解決策

  • 、コンテナ・リストのdata-actionにカスタム・ボタンの "actions "が必要です。
  • これは、 を追加することで実現できます。例えば、この日記の例では、view_entries.jspのデータ内に、デフォルトのアクションの隣にカスタムアクションを追加します:
 row.setData(
HashMapBuilder.<String, Object>put(
"actions", journalDisplayContext.getAvailableActions(curArticle) +",your_custom_actions_separated_by_commas"
).put(
"draggable", !BrowserSnifferUtil.isMobile(request) && (JournalArticlePermission.contains(permissionChecker, curArticle, ActionKeys.DELETE) || JournalArticlePermission.contains(permissionChecker, curArticle, ActionKeys.UPDATE))
).put(
"title", HtmlUtil.escape(title)
).build());

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base