oo

Using the Simulation Panel

Available Liferay DXP 2023.Q4+/Portal GA102+

You can verify your page’s responsiveness by simulating different scenarios.

With Liferay, use the Simulation panel to simulate different screen sizes and combine it with page content directed at available segments or with different experiences applied to the page.

Accessing the Simulation Panel

The Simulation panel (Simulation panel) is in the application bar.

The Simulation panel is located in the application bar.

Access the page using its address or through the Pages application to use the Simulation panel. To view a page through the Pages application,

  1. Open the Site Menu (Site Menu) and navigate to Site BuilderPages.

  2. Find the page you want to view and click Actions (Actions icon) → View.

Important

You need the Preview in Device permission to use the Simulation panel. It’s located under Control Panel → Sites → Sites → Resource Permissions → Site. See Defining Role Permissions to learn more about permissions.

Simulation Panel: Screen Size

You have five options when simulating the screen size, three pre-defined values (desktop, tablet, or mobile), and two variable ones (autosize and custom). To simulate the content, click Options (Options).

Option Height Width
Desktop (Desktop icon) 1050 px 1300 px
Tablet (Tablet icon) 900 px 808 px
Mobile (Mobile icon) 640 px 400 px
Autosize (Autosize icon) Adapts to window1 Adapts to window
Custom (Custom icon) Custom input2 Custom input

Simulating a desktop using the default experience.

Simulation Panel: Page Content

If you have segments or experiences in place, you can also simulate the content based on segment or experience applied. With the simulation panel, you can visualize how the experiences and segments look in a simulated screen.

  1. In the first selector, choose Segments or Experiences under Preview By to see the available segments and experiences in the second selector.

  2. If there are available segments or experiences, select them in the second selector.

Note

A message on top of the simulated content provides information about the applied segment/experience.

Selecting different experiences using the Page Content selectors.

Building a Responsive Site

Creating and Managing User Segments

Creating and Managing Experiences


  1. The autosize option adapts the simulation to the window’s size.

  2. Enter a custom value to the height and width of the simulated screen.

Capability: