Creating a Relationship Type
The relationship type property setting serves a dual purpose:
• It names the relationship type.
• It specifies which relationship types are available when copying or linking from product type A to product type B.
|
For a relationship type to be available from the clipboard, both the original and copied product types must be the same.
|
Out-of-the-Box
No relationship types are available out-of-the-box. You must follow the steps below to create any number of custom relationship types. These custom relationship types are available to users who are copying or linking products within the system.
|
The property setting automatically enables copying; however, you must use a second property setting to define the relationship type as a link relationship. See Specifying Link Relationships for more information.
|
Configuration
Use the following basic property setting to create a relationship type and specify which relationship types are available by product type:
jsp.product.CopyProduct.CopyRequests.<OriginalProductType>.<CopiedProductType>=<RelationshipTypeName>
You can specify multiple relationship types to be available, and therefore create multiple relationship types. Relationship type names must be separated by a comma. The basic property setting that defines multiple available relationship types by product type, and by relationship types is:
jsp.product.CopyProduct.CopyRequests.<OriginalProductType>.<CopiedProductType>=<RelationshipTypeName>,<RelationshipTypeName>,<RelationshipTypeName>
The <OriginalProductType> and <CopiedProductType> entries can include product subtypes. You must first indicate the product type, and then the product subtype, if applicable. Product subtypes are entered as follows:
Product\\Apparel
The Product/Apparel/Missy type is entered as follows:
Product\\Apparel\\Missy
In the following example, the MissyPetite and BrandBrand relationship types are created, and also available when the original product type is Product/Apparel/Missy and the copied product type is Product/Apparel/Petite.
jsp.product.CopyProduct.CopyRequests.Product\\Apparel\\Missy.Product\\Apparel\\Petite=Missy-Petite,Brand-Brand
Naming Relationship Types
Relationship type names provide the user with some indication of the original product and the copied or linked product, such as MissyPetite to indicate products copied or linked from the Missy product type to the Petite product type, or BrandBrand to indicate a brand exchange.
There are certain characters that are prohibited when naming relationship types. These characters are:
• The caret (^)
• The period (.)
• The equals sign (=)
• The forward slash (/)
Use a backward slash (\) in the property setting when naming relationship types. The backwards slash does not appear on the page.
Use a backward slash (\) if you want to separate your relationship type name using spaces instead of characters. You must precede any space in your relationship type name with a backward slash (\). For example, a property setting that contains the relationship type with the name Missy\ to\ Petite appears in the menu as Missy to Petite.
It is recommended that you use a dash (-) to divide your relationship type name. You can also use an underscore (_).