Managing content properties for a content class
You can add, modify, and delete content properties for a content class at any time. You can also test the properties against XML that you supply. Additionally, you can export the properties to a content property file.
Workflow for adding, modifying, and deleting content properties
On the Search page, in the list of content classes in the Settings panel, click the name of the content class for which you want to add, modify, or delete content properties.
Add, modify, or delete a content property.
- Add one or more properties individually
- Extract one or more properties from XML that you supply
- Import properties from a content property file
- Modify a content property by making the changes you want in the row for the property.
- Delete an existing content property by clicking the delete control (
) for the row containing the property.
Test or export all the listed content properties.
Click Update Settings.
If you also typed a new name for the content class in the Name field, clicking Update Settings changes the content class name.
Adding content properties individually
Above the content property list, click Add.
In the new row that appears in the content properties list, fill in the definition for the new content property.
Extracting content properties from sample XML
In the Sample Custom Metadata field, type or paste the well-formed XML from which you want to extract properties.
Above the content property list, click Extract.
The Extract Content Properties window opens. The window lists all the content properties HCP was able to extract from the sample XML.Select each content property you want to add to the content class.
To select all the listed content properties, click in the checkbox at the top of the list. To deselect all the properties after selecting all, click in the checkbox again.Click Add Selected.
A row for each content property you selected appears in the list of content properties for the content class.(Optional) Modify the definitions of the new content properties.
Importing content properties from a content property file
Above the content property list, click Import.
In the Import Content Properties window, click Browse. Then select the content property file you want.
Click Import.
A row for each content property defined in the content property file appears in the list of content properties for the content class.(Optional) Modify the definitions of the new content properties.
Testing content properties
You can test the definitions of the content properties for a content class at any time. You do this by having HCP extract content property values from sample XML that you supply. The test applies to all the content properties in the content property list, including those that have not yet been committed.
Procedure
On the Search page, in the list of content classes, click the name of the content class with the content properties you want to test.
In the Sample Custom Metadata field in the Settings panel, type or paste the well-formed XML you want to use for the test.
Above the content property list, click Test.
Results
Exporting content properties
You can export the definitions of the content properties for a content class to a content property file at any time. The resulting file includes the definition of each property in the list, including those that have not yet been committed.
Procedure
On the Search page, in the list of content classes, click the name of the content class with the content properties you want to export.
Above the content property list in the Settings panel, click Export.
When prompted, save the content property file to the location of your choice.