Skip to content

Docs about partial modifier outdated #1446

Open
@carstenjaksch

Description

@carstenjaksch

I tried to use the partial modifier, but there are several issues:

  1. The docs page mentions themes, that are outdated since v3.
  2. It does not work. I need to pass key-value-pairs of an array as variables to a partial. But the partial does not load – neither hard-coded nor dynamic.

This is my use-case (page_builder/_article.antlers.html from Peak starter, a Bard field):

{{ articleRaw = article | raw }}

{{ articleRaw }}
  {{ values = attrs:values }}

  {{ values | partial("components/{values:type}") }}
  {{# ... or hardcoded ... #}}
  {{ values | partial('components/pull_quote') }}
{{ /articleRaw }}

I am on Statamic 5.23.0 by the way.
Docs page: https://statamic.dev/modifiers/partial

Metadata

Metadata

Assignees

No one assigned

    Labels

    OutdatedFixes issues with docs becoming outdated or stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions