legacy-knowledge-base
公開されました Jul. 2, 2025

Webコンテンツストラクチャ、日付型の「初期値」プロパティを動的に設定したい

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

問題

  • ストラクチャに日付型の項目を配置し、初期値を「今日(新規投稿日)」に設定したいのですが、固定の日付しか初期値に設定できません。
  • 動的に日付を設定できますか。

環境

  • DXP 7.0+

解決

  • 日付型の「初期値」プロパティにつきましては、固定値のみが設定可能です。
  • 日付型の<設定>で、「必須」プロパティを「はい」に変更することで、自動的に「今日」の日付が設定された状態となります。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base