Foros de discusión
WebContent: Configure auto-expiration by default
Dennis Greiffenberg, modificado hace 14 años.
WebContent: Configure auto-expiration by default
Regular Member Mensajes: 222 Fecha de incorporación: 30/04/07 Mensajes recientes
Hi all,
Liferay's default behaviour is as follows: WebContent is infinitely valid (once approved). This can be changed on individual basis (i.e. per WebContent). Once the appropriate selectbox is deactivated, a date-field becomes active. The default expiration time for an article is one year in advance.
My question is as follows: Can the default behaviour configured the otherway round. So WebContent, by default, does expire? And if so: Can the period be tweaked as well, say I don't want content to be valid for a years time but only for four weeks?
...or is that something that I would have to change by means of programming?
And if so: Where?
Any hint / help is greatly appreciated!
Best regards,
Dennis
Liferay's default behaviour is as follows: WebContent is infinitely valid (once approved). This can be changed on individual basis (i.e. per WebContent). Once the appropriate selectbox is deactivated, a date-field becomes active. The default expiration time for an article is one year in advance.
My question is as follows: Can the default behaviour configured the otherway round. So WebContent, by default, does expire? And if so: Can the period be tweaked as well, say I don't want content to be valid for a years time but only for four weeks?
...or is that something that I would have to change by means of programming?
And if so: Where?
Any hint / help is greatly appreciated!
Best regards,
Dennis
Zankar Shah, modificado hace 14 años.
RE: WebContent: Configure auto-expiration by default
Regular Member Mensajes: 106 Fecha de incorporación: 3/10/07 Mensajes recientes
You will have to definitely change the JSP to get your requirement. If you have downloaded liferay source, you can go to portal-web/docroot/html/portlet/journal. The source JSPs are there. If you want to change that you can use hooks for that purpose
Fernando Garcia, modificado hace 11 años.
RE: WebContent: Configure auto-expiration by default
New Member Mensajes: 13 Fecha de incorporación: 12/04/11 Mensajes recientes
Hi Dennis
I'm facing the same problem and I was wondering if you solved the problem and how you did it ?
Thanks
I'm facing the same problem and I was wondering if you solved the problem and how you did it ?
Thanks
Dennis Greiffenberg, modificado hace 11 años.
RE: WebContent: Configure auto-expiration by default
Regular Member Mensajes: 222 Fecha de incorporación: 30/04/07 Mensajes recientes
Hi Fernando,
I think I never really finished this one off (the post is quite some time ago.. ;-) ), but I guess Zankar's suggestion is the right way to follow...
Best regards,
Dennis
I think I never really finished this one off (the post is quite some time ago.. ;-) ), but I guess Zankar's suggestion is the right way to follow...
Best regards,
Dennis
Josh Dezike, modificado hace 11 años.
RE: WebContent: Configure auto-expiration by default
New Member Mensaje: 1 Fecha de incorporación: 9/08/12 Mensajes recientes
Fernando Garcia, modificado hace 11 años.
RE: WebContent: Configure auto-expiration by default
New Member Mensajes: 13 Fecha de incorporación: 12/04/11 Mensajes recientes
Hi Dennis.
To change the expiration and review date you need to modify ext-model-hints like this:
To change the expiration and review date you need to modify ext-model-hints like this:
<model-hints>
<model name="com.liferay.portlet.journal.model.JournalArticle">
<field name="expirationDate" type="Date">
<hint name="default-month-delta">3</hint>
</field>
</model>
</model-hints>
Dennis Greiffenberg, modificado hace 11 años.
RE: WebContent: Configure auto-expiration by default
Regular Member Mensajes: 222 Fecha de incorporación: 30/04/07 Mensajes recientes
Cool!
Thanks for that information!
Best regards,
Dennis
Thanks for that information!
Best regards,
Dennis
Matthias Travis, modificado hace 11 años.