Exporting Web Content Does Not Include Past Versions

Liferay Portal users can export and import the contents of the Web Content Display portlets as a Liferay Archive (LAR). When exporting a LAR from the Web Content Display Portlet, the past versions of a web content article are not included in the exported LAR file.

This is intended behavior. Prior to Liferay Portal 6.1GA3, it was not possible to export past versions of a web content article. Starting in Portal 6.1 GA3, if users want to include past versions of the web content, they must begin the export of the LAR process from the Web Content portlet in the Control Panel and not from the Web Content Display portlet itself.

exportWClar.PNG

To reproduce this behavior in Liferay Portal prior to 6.1 EE GA3:

  1. Add a page to a site - "Web Content Page".
  2. Add the Web Content Display Portlet.
  3. Click the "Add Web Content" button on the portlet.
  4. Create a new web content article.
  5. Publish the article.
  6. Edit the article and publish again.
  7. Click the "Wrench" icon to expand the Option menu.
  8. Click "Export / Import".
  9. Name the LAR file in the text box: "Export the selected data to the given LAR file name."
  10. Click the "From Last Publish Date" radio button.
  11. Click "Export". The LAR file will be exported onto your local machine.
  12. Navigate to the site page where the LAR is to be imported.
  13. Add a new Web Content Display portlet.
  14. Click the "Wrench" Icon to expand the Option menu. Click "Export/Import".
  15. Click the Import tab.
  16. Upload the LAR file then click "Import" while using the default settings.
  17. The Web Content Display portlet will display the latest version of the article.
  18. Edit the article in Control Panel and click the "View History" button.

As expected, only the latest version was exported.

Resolution

If users require the inclusion of past versions of the same article during the export process, the following steps will need to be taken:

Option 1:

  1. Upgrade to Liferay Portal 6.1 EE GA3.
  2. Export the LAR through the Web Content Portlet in the Control Panel.

Option 2:

  1. If using versions of Liferay Portal prior to 6.1 EE GA 3, users can also contact Liferay Support and request a hotfix for LPS-29936.
  2. Install the hotfix.
  3. Export the LAR through the Web Content Portlet in the Control Panel.
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0