ItemControl
ItemControl is a CyberStore base control for controls that provide functionality for one catalog item. It extends CyberStoreBaseControl with item-type visibility conditions.
Item-type visibility
Use these properties when the configured control should not process or render for a particular item type.
| Property | Default | Valid values or format | Effect |
|---|---|---|---|
IgnoreWhenModelNot specified | Not specified | Prevents the control from processing or rendering when the item is a model. | |
IgnoreWhenSKUNot specified | Not specified | Prevents the control from processing or rendering when the item is an SKU. | |
IgnoreWhenStockCodeNot specified | Not specified | Prevents the control from processing or rendering when the item is a stock-code item. |
SitePages.config example
The following example loads ItemControl.ascx and applies the documented literal defaults. The following properties are omitted because they do not have documented literal defaults: IgnoreWhenModel, IgnoreWhenSKU, IgnoreWhenStockCode.
<Control src="ItemControl.ascx" />
Add this <Control> element to the appropriate page placeholder as described in The SitePages.config File.
This reference does not document defaults, supported combinations, or precedence for these properties. Validate the selected item-type condition on the target item page.
Inherited properties
ItemControl inherits the shared visibility and shopper-access conditions from CyberStoreBaseControl. Configure those shared properties from the base-control reference; do not duplicate them on concrete item-control pages unless the concrete control changes their behavior.
Validate the control
- Add the target item control through
SitePages.config. - Configure one item-type visibility condition.
- Open pages for the relevant item types.
- Confirm the control renders only for the intended item types.