Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Alagammai Kasi
Blog update time
February 19, 2013 1:31 AM
Answer

Alagammai Kasi

Rank: Regular Member

Posts: 149

Join Date: July 31, 2012

Recent Posts

Dear BUddies,

I need to check when a blog is updated ... the message posted on it has been changed and I need to extract the date and time that has been done.

How could I do it?

Please advice

Thanks in advance

Alagu
Gnaniyar Zubair
RE: Blog update time
February 18, 2013 11:30 PM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 601

Join Date: December 19, 2007

Recent Posts

Each blog entry has modifiedDate field :

Blog blog = BlogsEntryLocalServiceUtil.getBlogsEntry(entryId)
blog.getModifiedDate()
Alagammai Kasi
RE: Blog update time
February 19, 2013 12:48 AM
Answer

Alagammai Kasi

Rank: Regular Member

Posts: 149

Join Date: July 31, 2012

Recent Posts

Thank you Gnaniyar, got that.

Is there a way to find what is the change?

Thanks,
Alagu
Gnaniyar Zubair
RE: Blog update time
February 19, 2013 1:17 AM
Answer

Gnaniyar Zubair

Rank: Liferay Master

Posts: 601

Join Date: December 19, 2007

Recent Posts

I dont think so. changes will be stored in content field but you cannot take specific changes made in that entry.

Let us know if you achieve this. emoticon
Alagammai Kasi
RE: Blog update time
February 19, 2013 1:30 AM
Answer

Alagammai Kasi

Rank: Regular Member

Posts: 149

Join Date: July 31, 2012

Recent Posts

I got into the table and noticed only the latest updates are there

So, planning to get another space where I could use my backups to recreate the liferay with the backups

with that, i might be able to get the previous messages in the blog

thank you so much for ur input