Foros de discusión
web content expiration date range limit
Nagendra Kumar Busam, modificado hace 8 años.
web content expiration date range limit
Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
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.
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.
Nagendra Kumar Busam, modificado hace 8 años.
RE: web content expiration date range limit
Liferay Master Mensajes: 678 Fecha de incorporación: 7/07/09 Mensajes recientes
I am trying to change html\taglib\ui\input_date\page.jsp to introduce disable functionality conditionally
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)
<%
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)
Archivos adjuntos: