Skip to content

[QUESTION] Templating : adding entries in model #5861

@cmarchand

Description

@cmarchand

Hello,

in a templating function, it seems that's the way to add an entry into $model is to return a map with the new entries.

Could you please confirm that values inside the return map are added to new context, and are not volatile (they stay inside the $model for the whole request processing) ?

I have a problem in an html template, where I call the same templating function twice (one in /html/head/title, et then in /html/body/h1), and value is correctly replaced in title but not in h1.

Any help will be appreciated.
Christophe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions