You must upload templates to Workbench before they are available to users in Experience Manager.

All deployment template applications include a set_templates script in the control directory to update Experience Manager templates. You run the script after you locally modify XML template files and you want the templates available in Experience Manager.

This script requires that the templates you modify are stored locally in <app dir>\config\cartridge_templates.

To send updated templates to Experience Manager:

Template errors are detailed in the ifcr.log file.

The ifcr.log file is located in:

If any templates fail validation, the upload is canceled, and the previous templates remain in Workbench.

Schema validation failure issues an error similar to the following:

Setting new cartridge templates for Discover
[06.05.13 11:02:25] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
[06.05.13 11:02:26] INFO: Definition has not changed.
[06.05.13 11:02:26] INFO: Packaging contents for upload...
[06.05.13 11:02:26] INFO: Finished packaging contents.
[06.05.13 11:02:26] INFO: Uploading contents to: http://localhost:8006/ifcr/sites/Discover/templates
[06.05.13 11:02:28] SEVERE: Caught an exception while invoking method 'loadContent' on object 'IFCR'. Releasing locks.

Caused by java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl invoke0 - null
Caused by com.endeca.soleng.eac.toolkit.utility.IFCRUtility$HttpStatusException
com.endeca.soleng.eac.toolkit.utility.IFCRUtility execute - Internal Server Error (500): com.endeca.ifcr.content.entity.ValidationFailureException:

The following 2 validation failures occurred:
    [/sites/Discover/templates/BadImage] Error reading template XML:
javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException: cvc-complex-type.4: Attribute 'type' must appear on element 'ContentTemplate'.]
    [/sites/Discover/templates/BadPageSlot] Error reading template XML:
javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'EditorPanel'. One of '{"http://endeca.com/schema/content-template/2008":ContentItem}' is expected.]

The errors are written to the ifcr.log file. The upload in the example has two errors:

During the development and testing phase of your application deployment, you may need to make adjustments to your templates and update them in Experience Manager.

When Experience Manager populates the Content Detail Panel for a content item, it checks the content configuration of the loaded page against the template. If the template has been changed such that it is no longer compatible with the content, Experience Manager displays a warning and attempts to upgrade existing content to fit the new template definition.

Experience Manager does the following to ensure that the content and template are in sync:


Copyright © Legal Notices