Forums

Home » Liferay Portal » English » x. Miscellaneous

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Drew Todd
Disable Versioning
October 1, 2012 5:52 AM
Answer

Drew Todd

Rank: New Member

Posts: 7

Join Date: June 17, 2012

Recent Posts

Hi All

Wondering if there is a way to disable versioning in Liferay 6.1

I'm using a visualistion app which imports Excel Spreadsheets that are saved in a Documents folder in my liferay deployment. The app supports refreshing data whenever the Excel Spreadsheet is updated, but it will only recognise the excel spreadsheet has been updated if I delete it from the document folder and add the updated spreadsheet back into the folder as a new document with same name,

This isn't really a bug in the app, it's just designed to detect an updated file by looking at the date created stamp, which doesn't change when a new version is created of an existing document. So guess I'm hoping that if I can disable versioning, that when I upload an update to the excel document, it will change the date created stamp, which would trigger the refresh of data in the visualisation app

Thanks!
Hitoshi Ozawa
RE: Disable Versioning
October 7, 2012 8:21 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Can't you just change to check if the version number or modified date (getModifiedDate()) changed instead of create date?
Disabling versioning will still change the modified date and not the create date.