留言板

How to show Last Modified date in every pages through out the portal

Anuvab Ghosh,修改在8 年前。

How to show Last Modified date in every pages through out the portal

New Member 帖子: 5 加入日期: 15-9-8 最近的帖子
I have a requirement to show Last Modified/Updated date in every page through out the Liferay portal. It should be updated with respect to any modification in the page (Web Contents / Portlets, anything). How is it possible? please explain me. I am new in Liferay and using Liferay 6.1.1. ce/ee ga2. Please share your ideas with me and give the solutions. It is very urgent for me.

Thanks in advance.
thumbnail
David H Nebinger,修改在8 年前。

RE: How to show Last Modified date in every pages through out the portal

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
It doesn't matter how many times you guys post the same question, but it's not going to be possible.

Liferay aggregates individual portlet contents into a single page. So a page "last modified date" really doesn't make any sense. For dynamic portlets, the content changes all the time so last update makes no sense.
thumbnail
Juan Gonzalez,修改在8 年前。

RE: How to show Last Modified date in every pages through out the portal

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Anuvab,

Liferay uses a CacheFilter which stores a page content in a cache for pages that meets some conditions.

I'd recommend you to investigate the usages of
CacheUtil.clearCache() 

and
CacheUtil.clearCache(long companyId) 

through all Liferay source code to see when pages portlets are modified (Layout) and there you could update the page modified date so it can be seen in every page.

Hope it helps....