Importing functionality to a page
Some pages, typically included in the- Sign in to Liferay.
- Browse to a page that has the That’s how it works-structure.
- In the context menu of the Asset publisher portlet, select Export / Import.
- Click Export.
The portlet settings are now saved as a file. - In the window that opens next, click the Asset_Publisher...portlet.lar link under the Download header.
The series of numbers in the file name is generated automatically, based on the date and time it was created. - The file is automatically saved to your Downloads folder - if you want to, place it at some other location that is easy to find, for example Desktop.
- Close the export window.
- Go to a page where you want to add the That’s how it works-structure.
- Click the plus sign at the top right and search for the Asset publisher portlet that is located under Content management.
- Drag the portlet to the page.
- In the context menu of the Asset publisher portlet, select Export / Import.
- Select the Import tab.
- Click the Select File button and browse to the Asset_Publisher...portlet.lar file that you saved to your computer earlier. Alternatively, drag the file from Windows File Explorer and drop at the uploading area.
- Click Continue.
- Click Import.
- Close the window and refresh the page.
When you export/import according to above, all portlet settings are included but each exported portlet is still connected to the original portlet, and to be able to adapt these separately, you need to work with categories.
Creating and selecting categories
In this example, we work with the Focus shortcuts that you typically find on the start page.
Go to the control panel and select Content/Categories.
Under Article categories, create new categories and name them according to their usage. If you have copied settings from the Focus shortcuts to, for example, use them also on the page with eMedia, then you can create a category named Focus eMedia. Make sure that there is also a category called Focus start to be used for the focus shortcuts on the start page.
Now edit the articles to be used by the focus shortcuts on the start page by connecting them to the article category Focus start. Do the same for the articles to be used on the page with eMedia and connect these to the article category Focus eMedia. This makes each asset publisher to show only the content that is relevant on the different pages.
Select Configuration in the context menu of the asset publisher portlet. Select the accurate category under Filter for each asset publisher, and click Select.
Click Save and reload the page. Verify that the focus shortcuts on each page display the correct content.