Skip to content

Grav v2.0.0 Twig in content not processed #4154

Description

@beejay41

I thought you'd cracked this one.

My first site (where all this started) has now migrated to V2.0.0 without issue. (Congratulations on V2 launch.)

So, now I'm migrating a second site, similar modular structure as with site one, but the missing images and {{ unite_gallery(...) }} have returned.
(I've added unite_gallery to the sandbox exceptions and there is no logs/security.log or generated comments, to give any clues.)

On site1, the page: process: twig: true is shown on every Page under Advanced tab, but not on site2, so for some reason page: process: twig: true in system.yaml is being lost or ignored, both in Admin and the front-end.

Default system.yaml
...
pages:
  process:
    twig: true
    markdown: false
  twig_first: false
  never_cache_twig: false
...

env:domain system.yaml has the same entries as above.

Default security.yaml
twig_content:
  process_enabled: true
  editor_enabled: false
  config_access: false
env:domain security.yaml
twig_sandbox:
  allowed_functions:
    ... (default list)
    - unite_gallery

I added the contents of the default security.yaml to the env:domain copy, but this made no difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions