Sharing Site Templates¶
To export a Site that uses Site Templates or Page Templates to a different Liferay DXP installation (through a LAR file or remote publication), the Site Templates must be exported and imported manually first, before the Site.
To export a Site using a Site Template, follow these steps:
Open the Global Menu (
) and go to Control Panel → Site Templates.
Open the Actions Menu (
) for the Site Template you want to export and select Manage.
While managing the Site Template, go to the Site Menu and navigate to Publishing → Export.
Click the Add icon (
) to create a new custom export.
Select the content and pages you want to export and click Export.
Click on the Download icon for the template that you exported.
In your target environment (Liferay Portal instance), open the Global Menu (
) and go to Control Panel → Site Templates.
Create a new Site Template.
Open the Actions Menu (
) for the Site Template and select Manage.
While managing the Page Template, go to the Site Menu and navigate to Publishing → Import.
Import the Site Template LAR you downloaded.
The Site Template can be used normally in the new environment. For more information on exporting/importing content, see Importing/Exporting Pages and Content.