Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Filter for a property of the node. The value for the property must be an exact match.

Style
mgnl-mini-code-snippet
simple
author=Magnolia%20Travels
@name property filter

Filter for the node name.

simple
mgnl-mini-code-snippet
Style
@name=travel
@ancestor filter

Filter for ancestor nodes of a provided path. The path must be absolute in the given workspace of the given workspace prefix.

simple
mgnl-mini-code-snippet
Style
@ancestor=/travel/about/careers/marketing-associate

Notes on using filters

  • If no operator is provided, eq is used by default.

  • The value in the filter parameter is treated as String .

  • Use brackets to pass an operator, for example [eq][ne][lt], and so on.

  • For in and not-in, a range symbol ~ (the tilde) should be provided, for example:

    Code Block
    https://example.com/.rest/delivery/pages/v1?mgnl:created[in]=2018-01-01~2018-02-01

...