留言板
Need to add a hint for webcontent - display date (portal-model-hints.xml?)
Philip Barta,修改在12 年前。
Need to add a hint for webcontent - display date (portal-model-hints.xml?)
Junior Member 帖子: 57 加入日期: 10-1-21 最近的帖子
I am trying to increase the year-range-delta value for the Display Date within the Control Panel-> Web Content-> Schedule (section)-> Display Date. I am trying to find documentation regarding how to deal with portal-model-hints.xml or portal-model-hints-ext.xml. Is this where I need to make the change? If so, is this an ext? What is the XML?
Philip Barta,修改在12 年前。
RE: Need to add a hint for webcontent - display date (portal-model-hints.xm
Junior Member 帖子: 57 加入日期: 10-1-21 最近的帖子
I tried this (though it does not seem to be working);
1.) Copied portal-model-hints.xml into {ext-project-dir}\docroot\WEB-INF\ext-impl\src\META-INF\portal-model-hints.xml]
2.) Added the following to "<model name="com.liferay.portlet.journal.model.JournalArticle">":
[indent]<field name="displayDate" type="Date">
[indent]<hint name="year-range-delta">20</hint>[/indent]
</field>[/indent]
3.) Deployed the ext.
4.) Stopped/started my server.
1.) Copied portal-model-hints.xml into {ext-project-dir}\docroot\WEB-INF\ext-impl\src\META-INF\portal-model-hints.xml]
2.) Added the following to "<model name="com.liferay.portlet.journal.model.JournalArticle">":
[indent]<field name="displayDate" type="Date">
[indent]<hint name="year-range-delta">20</hint>[/indent]
</field>[/indent]
3.) Deployed the ext.
4.) Stopped/started my server.