Skip to main content
Version: v0.1 (latest)

Twig Functions

Flare registers the following Twig functions (see also Templating):

FunctionDescription
flare_content(model)Renders the content elements belonging to the given model.
flare_enclosure(model|entry_row, field = "enclosure")Retrieves file enclosure data, like Contao\Controller::addEnclosuresToTemplate().
flare_enclosure_files(model|enclosure_array)Deprecated (removal pending for v0.2): retrieves the Contao\FilesModel collection for the given enclosure data.
flare_project(list_specification, context)Runs a projection directly: returns the view for the given ListSpecification and context configuration.
flare_schema_org(model = null)Prints JSON-LD schema markup for the given model (falls back to the context's model) in a reader context. Influence the data via ReaderSchemaOrgEvent.

Debugging: Symfony Profiler

In dev environments, Flare contributes a panel to the Symfony profiler / web debug toolbar (via its data collector), currently showing the installed Flare version at a glance.