Hide content
We can hide portlets and widgets on a page so they are present but not visible in the page layout.
Why Hide Content?
Sometimes we might want a portlet or widget on the page, but it does not have a user interface. In that case, it should be hidden. An example is if you have a data processing widget and a data viewer widget wired together. The data viewer widget would be visible and the data processing widget would stay hidden.
In the portal theme, content is hidden by putting it into a special container in the layout that is hidden with CSS. All of the out of box layout templates have this hidden container.
- View hidden content
- Click Edit Mode.
- Click More > Show Hidden Content.
- How to hide content. There are two ways to hide a piece of content:
Use the Portlet Actions menu
Use drag and drop
- View the hidden content as described in step 1.
- Click the drop down menu icon in the portlet or widget.
- Click Hide.
- Click Save Draft to save the page.
- View the hidden content as described in step 1.
- Drag the portlet or widget into the hidden container that appeared in step a.
- Click Save Draft to save the page.
- How to unhide content There are two ways to display a piece of content:
Use the Portlet Actions menu
Use drag and drop
- View the hidden content as described in step 1.
- Click the drop-down menu icon in the hidden portlet or widget.
- Click Move Down.
- Click Save Draft to save the page.
- View the hidden content as described in step 1.
- Drag the portlet or widget out of the hidden container.
- Click Save Draft to save the page.
Parent: Content