Legacy Knowledge Base
Published Sep. 10, 2025

Exported Page Template SAVES Custom Fragment Configurations / Imported Page Template IGNORES Custom Fragment Configurations

Written By

Ankit Gupta

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Steps to Reproduce:

    1. Create a custom fragment with any type of configuration. (I've tested with "dataType": "int" and "type": "text"). Alternatively you can import the attached zip that includes a custom fragment.
    2. Create a page template and add the custom fragment to the page.
    3. Change the configuration of the custom fragment.
    4. Publish the page template.
    5. Export the page template.
    6. Unzip the exported page template and examine the page-definition.json file to see that the changed configuration was properly exported.
    7. Delete the page template just created through Liferay's UI.
    8. Import the exported page template.
    9. Click to edit the newly imported page template.
    10. Check to see if the custom fragment configuration displays the value you changed it to in step 3.

     Expected Result:

    • The custom fragment configuration should persist when imported.

     Actual Result:

    • The custom fragment configuration does not persist when imported.

Environment

  • Liferay DXP 7.3

Resolution

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base