Arjan van IJzendoorn on February 9, 2016
Mendix DX, also known as 5.18, included a whole new UI framework, which was highlighted in a post by Erik Heddema. I would like talk about a change in the modeling experience: layout types.
If you are using Mendix 5.18 or higher, you have to make sure that the page templates feature flag is enabled. See Project > Settings > Model > Enable page templates. In Mendix 6 the new modeling experience is enabled for all projects.
With page templates enabled, layouts have an extra property called Layout type. Possible values for this property are the following:
The layout type is used for filtering the layout drop-down in the form you use to create new pages.
While working on layout types, we realized that they can be used for more than just filtering layouts. We could use the layout types for determining how to open pages! Now you no longer have to specify how to open a page (in content, popup…), because the page already knows this through its layout. This not only makes it easier, it also makes it impossible to end up with a pop-up with a menu bar inside. We’ve all been there…
Before layout types, this is how you configured the opening of a page:
Editing page settings would give you another dialog:
With layout types all you need to do is select is a page and optionally override its title:
This is very much in line with the simplification we did for calling microflows in 5.17, where you no longer have to specify what arguments to pass to a microflow. I’ll leave you with the words of one of our users:
I’m really happy that the dreadful open page options are no longer necessary, and that a page will be opened correctly based on the selected layout.
Receive Mendix platform tips, tricks, and other resources straight to your inbox every two weeks.