Export and Import Templates

You can export a template to modify it offline and then import it either as a new template or to replace the existing template. You can also export a template to move it to another Oracle Content and Experience instance and import it there

Export Templates

When you export a template, you essentially copy the template to a folder in Oracle Content and Experience as a single .zip file. You can download the template package directly from the folder to unpack and work with the individual files. When you’re done working with the template files, create a .zip file containing the template package and import it into your site and overwrite the original template or create a new one.

Note:

When you export a template, sharing information for the template isn’t included.

To export a template:

  1. Click Developer and click View All Templates.

  2. Select a template and choose Export from the menu bar or the right-click menu.

  3. Navigate to an existing folder or create a new folder by clicking Create, and providing a name and an optional description.

  4. Choose a folder by selecting its checkbox and clicking OK.

Import Templates

Note:

If you import a template to a different server, some links in the default site may not be valid in the new server context. If the site uses reference links to images or other content rather than copying the content directly into the site, that content is not available on the new server. Even if you copy the content to the new server, the content will have a different internal ID, and the link will not be valid. When you import the template, you are notified of the pages that contain invalid reference links.

To import a template package:

  1. Click Developer and click View All Templates.

  2. Click Create and choose Import a template package.

  3. If you’ve uploaded a template package, navigate to the folder that contains the template package and open the folder. If you haven’t uploaded the template package yet, go to the folder where you want to upload it or create a new folder. Click Upload and then locate and select the template package and click Open.

  4. To use a template, click the checkbox next to the template file name and click OK. New folders are created for the template, its associated theme, and any custom components. If the template, theme, or custom component names or IDs exist, you’re prompted to resolve the conflicts. You may need to create a new template, theme, or component, or you can overwrite the existing items with the imported version.

Import Templates into a Specific Repository

You can select a repository and import a template package specifically to it.

  1. Click Content and select Repositories from the menu.

  2. Select the repository where you want to import the template package and click Import Content.

  3. If you’ve uploaded a template package, navigate to the folder that contains the template package and open the folder. If you haven’t uploaded the template package yet, go to the folder where you want to upload it or create a new folder. Click Upload and then locate and select the template package and click OK.

  4. Choose if you want assets that already exist in the repository to be updated with the new revisions, or if you want duplicates of the assets made and click Import.

  5. Click Details to see a list of assets and content types that were imported. Click OK when done.