After you create Collections and Fragments, you have a handful of options for managing them. You’ll explore several management options next.
To access the collections management menu,
Select the Collection you want to manage from the Collections list.
Click on the menu next to the collection name.
Select whether you want to Edit, Export, Import, or Delete the collection.
Edit: change the name or description for the collection.
Export: download a
.zipfile containing the full collection.
Import: select a
.zipfile to upload with additional Fragments.
Delete: remove the current collection and all of its contents.
Next, you’ll learn about the Fragment Management Menu.
To access the fragment management menu,
Select the Collection containing the Fragment you want to manage from the Collections list.
Click on the menu next to the Fragment name.
Select whether you want to Edit, Rename, Move, Make a Copy, Change Thumbnail Export, or Delete.
Did you know you can enable automatic propagation for Fragments? You’ll do this next.
By default, when a Fragment developer makes a change to an existing fragment, the change is not automatically propagated to the pages that were using it. This gives marketers and page authors more control over the pages they own, avoiding unexpected changes. For example, if three pages were using the same Fragment, an update to the Fragment could introduce unintended changes to some of the pages using it. While this is a safeguard for the production environment, developers must manually propagate Fragment changes during testing, which can be tedious. To give developers more freedom, you can enable automatic propagation for Fragment changes:
Navigate to the Control Panel → Configuration → System Settings → Page Fragments.
Enable the checkbox Propagate Fragment Changes Automatically.
Great! You’ve enabled Fragment propagation system wide! Now when a developer publishes a Fragment, the changes apply immediately to all Content Pages, Content Page Templates, and Display Page Templates using it, overwriting existing Fragment code. Automatic propagation works only for HTML, CSS, and JS Fragment code, not the editable values.
When using the Fragment Editor, you’re now notified that automatic Fragment propagation is enabled.
Now that you’ve seen how to use Liferay’s built-in tools to manage Fragments, you can see how to do it using your own tools of choice and the Fragments Toolkit.