Returns the product title or the value of a named parameter, multi-choice value or attribute of the parent configuration. If no parent configuration or no matching parameter/attribute is found, then an empty string is returned.
string Parent([string name])
name |
Optional name of a parameter, multi-choice value or attribute. |
Example
Parent()
Returns the title of the parent configuration's product.
Parent("Color")
Returns the value of the parameter or attribute named "Color" from the parent configuration.
Parent("Options.FastDelivery")
Returns the value of the multi-choice value named "FastDelivery", belonging to the multi-choice parameter "Options", from the parent configuration.
Remarks
Boolean values are returned as "True" or "False". Bool parameters and multi-choice values with "three-state" active can also have the value indeterminate which is returned as the empty string "".
It is recommended to place attributes that read the value of other configurations’ attributes at the bottom of the attribute tree to reduce the risk of circular dependencies. Another solution is to replace either the referenced or referencing attribute with a parameter that is set using a template expression rule.