Hidden Components

A hidden component is a component that isn’t displayed in the storefront even though it is present in a content slot of a page.

A hidden component is a component that isn’t displayed in the storefront even though it’s present in a content slot of a page. A component can be hidden because the Display Component setting is set to off. It can also be hidden because it has a restriction added to it and the conditions of the restriction dictate that the component isn’t displayed in the storefront, for example, a time restriction or a user restriction.

You can hide a component based on any component type. When you create or edit a component, you can apply the settings to hide your component in the Visibility tab of the Component Editor.

If you want to hide a component because you're currently working on it and it's not ready to be published online, you can set the Display Component setting to Off. You use the Display Component setting to hide or display a component. If the setting is set to off, any restrictions added to your component don’t apply. This setting overrides the conditions of your restrictions and hides the component. You can also manage the visibility of components by adding restrictions to them. For more information, see Adding Restrictions to Components.

In the Saved Components tab of the Add Component panel, SmartEdit uses the Display Condition icon to indicate components that are hidden because the Display Condition setting is set to off.

The following image shows the Saved Components tab of the Add Component panel displaying the available components.

You can add a hidden component to a content slot as you would add any other component. You drag it from the Saved Components tab of the Add Component panel to the target location in a content slot and drop it. When you drop the component, SmartEdit shows an alert that the component won’t be displayed in the page and provides a link if you want to edit the component to make it visible.

In Advanced Edit mode, when you move your cursor over a content slot that contains hidden components, SmartEdit displays a Visibility icon . The Visibility icon also displays the number of hidden components in the content slot. The components can be hidden because their Display Condition is set to off or because of a restriction. When you click the Visibility icon, the Manage Components Visbility panel is displayed showing details of the hidden components. You can edit a component by clicking on its name in the panel.

The Component Editor appears displaying the content of the Visibility tab.

For more information, see the following: