Hide Component Feature

Allows you to hide a component on certain viewports. This feature is available on v2 of AEM 6.4.

Basic steps in hiding a component

In author, left click the component to open the toolbar, then click on the Layout icon to the right as shown below.

Hide Component

On the next set of tools, click the Hide Component (eye-like) icon to enable the hide feature.

Hide Component

NOTE

To go back to the previous toolbar, click the “x” icon to the right of the hide icon.

Once hidden, a red icon to the right of the component will appear indicating that it is now hidden and will not be displayed on the website except on author.

Hide Component

Hiding a component on different viewports

The viewport emulator is visible on the top section of the page after clicking the layout icon on author.

Hide Component

You will have three viewports to choose from: desktop, tablet, and mobile. Select by clicking which viewport you wish to hide/unhide the component then follow the basic steps mentioned above.

Viewport

So, from right, the breakpoints are:

  1. Desktop
  2. Tablet
  3. Mobile

Desktop (Default)

Viewport

Note

Component hidden on desktop will also be hidden by default on tablet and mobile viewports. So, you have to switch viewport and unhide them.

Tablet

Viewport

Mobile

Viewport

Unhiding the component

To unhide the component, click the Parent icon while on layout view as shown below.

Unhide Component

Then click the immmediate layout container from the dropdown.

Unhide Component

On the next toolbar, click the Show Hidden Components icon.

Unhide Component

Now, to unhide the component, click the eye-with-check-like icon to the left of the component to disable the hide feature.

Unhide Component