Message Boards
Exporting Document Library as a LAR file
Exporting Document Library as a LAR file
New Member Posts: 24 Join Date: 4/30/15 Recent PostsHello,
I have exported the document library within a site as a lar file. When I try to import the same in a different site, I am seeing that only the latest version of a document is available and not all the versions.
Please let me know if it works like this only[latest version is only exported] or are there any setting/configurations that should be made to export all the version of a particular document.
My requirement is that I need to move all the documents from one site to different site with all the versions.
have also tried the Export/Import option under Publishing section of a site.
Thanks & Regards,
Chandra
RE: Exporting Document Library as a LAR file
Liferay Master Posts: 753 Join Date: 1/9/14 Recent PostsHi Chandra,
That behavior (exporting only last version) is the correct behavior.
As far as I know, this behavior is not configurable.
Perhaps you can modify current logic implementing a custom FileEntry data handler, that behavior was added here:
- Issue: https://issues.liferay.com/browse/LPS-56374
- Commit: https://github.com/brianchandotcom/liferay-portal/commit/854d87ebff5c8819d46816eb60b986572f9dde37
Reverting that change should change current behavior.