Twig usage¶
Netgen Layouts includes a number of Twig functions and tags to make it easier to work with layouts and blocks in your Twig templates.
Some of the functions are used by the frontend and backend layout and block templates, while others are used exclusively in the administration interface of Netgen Layouts.
List of built in Twig functions¶
The following lists all Twig functions built into Netgen Layouts.
ngbm_render_block
ngbm_render_layout
ngbm_render_item
ngbm_render_parameter
ngbm_render_placeholder
ngbm_render_rule
ngbm_render_rule_target
ngbm_render_rule_condition
ngbm_render_value_object
ngbm_item_path
ngbm_collection_pager
ngbm_collection_page_url
ngbm_ezcontent_name
ngbm_ezlocation_path
ngbm_ez_content_type_name
List of built in Twig tags¶
The following lists all Twig tags built into Netgen Layouts.
List of built in Twig global variables¶
The following lists all Twig global variables built into Netgen Layouts.