How to: |
A responsive portal allows you to create layouts that resize dynamically to any width based on screen size, device, and orientation, thus eliminating the need to design for a specific device preference. This approach takes your content beyond the desktop and delivers a quality experience to users, on any display. The Portal Designer offers you a series of versatile presets, that make the task of creating a responsive portal a quick and straightforward process.
There are two methods for building a responsive portal: percentage-based and pixel-based. Both methods produce responsive behavior. The percentage-based responsive portal uses percentages to scale columns and panels to any width, while the pixel-based responsive portal relies on the developer to set a range within which the content will fluctuate in size. Follow the procedures below to see how these methods create a basic responsive portal in the Portal Designer.
A user must have the privileges of a developer or administrator to be able to build a basic responsive portal.
See Creating a Portal for more information on creating a new basic portal.
The Choose a Layout menu opens.
All responsive layouts are created in a one column page layout.
The Responsive container is inserted, taking up the full width of the page.
When you drag items sequentially, you can choose the order in which they display, using the shaded placement indicator as a guide. When you drag items simultaneously, using the multiselect option (Ctrl key), they display in the order in which they are selected.
Note: Your portal page can also contain a responsive filter panel that was created in WebFOCUS App Studio. For more information on how to create responsive filter panels that you can add to a BI Portal, see the WebFOCUS App Studio technical content.
For example, if you were going to create a responsive portal that contained four items in the first row, and two items in the second row, you would select the first four panels.
Note: You can only multi-select panels by clicking its title bars. If the title bars are hidden, you cannot multi-select these panels.
The Advanced Responsive Item Properties dialog box opens.
For example, bip-responsive-4-2-1 means that the content will display four items across on wide screens, two items across on medium screens, and one item across on narrow screens. If you use bip-responsive-3-2-1, the content will display three items across, then two items across, then one item across. If you use bip-responsive-2-1, content will display two items across, then one item across. If you choose bip-responsive-1, the item will fill the entire row.
In the following image, we have updated the Custom CSS Classes field for a page that uses the 4-2-1 responsive folding behavior for the first four items on the page.
Note: When one of the built-in responsive classes is used in the Custom CSS Classes field, it sets the width of the panel as a percentage of the page width, based on media queries. The percentage width setting made in these built-in responsive classes overrides any width settings defined on the panel.
The first row of panels are now stretched evenly across the Responsive container.
The Advanced Responsive Item Properties dialog box opens.
The remaining panels now stretch across the Responsive container, in the second row.
Note: You can create multiple layouts using this principle and varying the CSS classes to reflect the desired percentage.
Note: These changes render the Responsive container invisible on the page at runtime, and in Portal Designer. To edit the content in your Responsive container or access its properties, you can use the breadcrumb trail below the Property sheet to select it.
All items rearrange perfectly to fill the portal page.
See Creating a Portal for more information on creating a new basic portal.
Keep the default values for the Alignment and Page Height Mode options.
The banner width changes in live preview to match the closest preset width.
The Choose a Layout menu opens.
All responsive layouts are created in a one column page layout.
The Responsive container is inserted, taking up the full width of the page.
The Advanced Responsive Item Properties dialog box opens.
Note: The range of minimum and maximum width and height is already filled by default for a small panel. You can change these values to adjust panel size and to create different layout. Keep in mind that in a responsive portal, setting fixed dimensions for items is not recommended. For this reason, you must only set a range between minimum and maximum width and height, defining the amplitude with which the item can vary in size.
An example of the completed configuration is displayed in the following image.
The two bottom panels change size simultaneously. The layout now features two even lines of panels, four small and two large ones.
Note: These changes render the Responsive container invisible on the page at runtime, and in Portal Designer. To edit the content in your Responsive container or access its properties, you can use the breadcrumb trail below the Property sheet to select it.
Your new responsive portal now appears in the Repository.