Export and Import Site Templates

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

Export Site Templates

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

Note:

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

To export a site template:

  1. Click Developer and click View All Site Templates.

  2. Select a site 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 Site Templates

Note:

If you import a site 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 site template, you are notified of the pages that contain invalid reference links.

To import a site template package:

  1. Click Developer and click View All Site Templates.

  2. Click Create and choose Import a site template package.

  3. If you’ve uploaded a site template package, navigate to the folder that contains the site template package and open the folder. If you haven’t uploaded the site 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 site template package and click Open.

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

Import Site Templates into a Specific Repository

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

  1. Click Content and select Repositories from the menu.

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

  3. If you’ve uploaded a site template package, navigate to the folder that contains the site template package and open the folder. If you haven’t uploaded the site 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 site 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.