layout_view

This view is used to render Netgen\Layouts\API\Values\Layout\Layout entity.

Available variables

Variable name

Description

layout

The layout which is being rendered

Warning

Frontend templates for layouts (default context) are an exception and are not rendered through the Netgen Layouts view layer. Instead, they are rendered by extending from a special nglayouts.layoutTemplate variable, available in your full view templates. Because of that, in frontend layout templates, layout variable is not available. Instead, the rendered layout is accessed by using nglayouts.layout variable.

Warning

This view reuses backend templates for layout types to render the layouts themselves. For this reason, those templates sometimes receive the layout variable, and sometimes layout_type variable, based on what is being rendered. Your own templates need to be aware of this and act accordingly, i.e. check for existence of both variables prior using them.