Responsive Layout: Strategies To Add Layout Container in The Page
Responsive Layout: Strategies To Add Layout Container in The Page
Responsive Layout: Strategies To Add Layout Container in The Page
The layout container allow content authors to add and position components within that
responsive grid.
AEM Grid Layout Container is not the replacement for any responsive framework.
Layout Mode
Author can use Layout Mode, to specify responsive behaviour.
Example:- Span of column desired. Hide or show content for specific breakpoints.
And then preview the break points for different devices.
Emulator
This allows you to create and edit responsive websites that rearrange the layout according
to device/window size by resizing components interactively. The user can then see how the
content will be rendered using the emulator.
Responsive Layout/design in AEM web pages is achieved with the help of responsivegrid or
Layout Container component. This provides a paragraph system which lets us to add
components and position them within the responsive grid.
Include the Layout container component in base page component or can be dragged and
dropped from component browser.
Include the responsive CSS
Enable Emulator
Enable Layout mode.
Enable Emulator:
Layout mode will be available in the toolbar as one of the modes along with Edit/Design
mode only if we specify Breakpoints.
Breakpoints are defined either at template level or at jcr:content of root page of the site
so that all the pages created under that will have the mode available.
With this four steps above, we will have responsivegrid component ready to use with Layout
mode(position component within the grid)and with Emulator (for viewing how content will
be rendered in configured devices)
Administrator Guide Configuring Layout Container and Layout Mode