Skip to content

{{ if (collection == "pages") && (parent:slug != "home") }} causes error #2001

@wm-simon

Description

@wm-simon

Bug Description

{{ if (collection == "pages") && (parent:slug != "home") }} causes error.

How to Reproduce

{{ if collection == "pages" && parent:slug != "home" }}
{{ if collection == "pages" && page:slug != "home" }}
{{ if collection == "pages" AND parent:slug != "home" }}
{{ if (collection == "pages") && (parent:slug != "home") }}

All versions causes an error.

Extra Detail

Environment

Statamic version: 3.0.0.-beta-31

PHP version: 7.4

Install method (choose one):

  • Fresh install from statamic/statamic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions