留言板

web content expiration date range limit

thumbnail
Nagendra Kumar Busam,修改在8 年前。

web content expiration date range limit

Liferay Master 帖子: 678 加入日期: 09-7-7 最近的帖子
Hello Everybody,

I am using liferay 6.2 EE, does any body implemented restricting web content expiration date allowed to be max one year from current date (greater than one year should be disabled). Any inputs much appreciated.

Thanks in advance.
thumbnail
Nagendra Kumar Busam,修改在8 年前。

RE: web content expiration date range limit

Liferay Master 帖子: 678 加入日期: 09-7-7 最近的帖子
I am trying to change html\taglib\ui\input_date\page.jsp to introduce disable functionality conditionally

<%
						if(name.equals("expirationDate") && (PortalUtil.getPortletNamespace(PortletKeys.JOURNAL)).equals(namespace)){
							System.out.println("Inside expirationDate");
					%>
					calendar: {
						maximumDate: new Date(<%= calendarCurrentDate.get(Calendar.YEAR)+1 %>, <%= calendarCurrentDate.get(Calendar.MONTH) %>, <%= calendarCurrentDate.get(Calendar.DAY_OF_MONTH) %>)
					},
					<%
						}
					%>


I tried to add some thing like that. Mostly everything working, only problem is it is not setting date in the calendar as show in first screen shot, when I click on input box. How can I make that date selected(last date before disabling started)