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.
nglayouts_render_blocknglayouts_render_layoutnglayouts_render_itemnglayouts_render_resultnglayouts_render_parameternglayouts_render_placeholdernglayouts_render_rulenglayouts_render_rule_groupnglayouts_render_rule_targetnglayouts_render_rule_conditionnglayouts_render_valuenglayouts_render_rolenglayouts_render_role_policynglayouts_render_policy_limitationnglayouts_item_pathnglayouts_item_admin_pathnglayouts_collection_pagernglayouts_collection_page_urlnglayouts_ibexa_content_namenglayouts_ibexa_location_pathnglayouts_ibexa_content_type_name
List of built in Twig global variables
The following lists all Twig global variables built into Netgen Layouts.