Adding a new configurable property to the site category requires updating both the database and the site repository on the management and production schemas. Additionally, the corresponding Web application must be updated to accommodate this new property.

  1. Create a new siteRepository.xml file.

  2. In the relevant category item mapping, include or exclude your new property. If you are defining a custom propertyView, you must update the itemViewMapping.propertyViewMappings to include the mapping from your new property to your propertyViewMapping. Refer to the Important Warning regarding modifications to propertyViews and propertyViewMappings.

  3. For each new property, specify a display-name-resource attribute. This attribute should point to a resource bundle that is available in your classpath.

    Note: Ensure the new resource bundle file has a unique name that does not overwrite an existing resource bundle.

  4. Set the property information as necessary.

    Important: ATG best practices suggest that you do not set properties to required in the siterepository.xml. Instead, use the required viewMapping attribute to set the property to required.

    Note: Ensure that the database column for this property is not set to Null.

  5. Create the database table necessary to represent the above table. Load the data into the database.

  6. Define any default property editors that are needed to edit the property detail. Refer to the ATG Merchandising Administration Guide for information on creating property editors.

If you are adding a new property to an existing site category, sites that use the category are automatically updated to include the new property. If you are using the includeProperties attribute you must manually add the new site configuration property to the includeProperties attribute on the appropriate item view mapping. You must also update the database and Site Repository on both the management and production schemas. Refer to the Add Items section in the ATG Repository Guide for additional information on adding properties.

If you are adding a new table, ensure that the table contains an ID column. If your property requires the creation of a new item type, refer to the SQL Content Repositories section of the ATG Repository Guide.


Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices