Skip to content

Ability to associate a yaml file with a partial config #95

Description

@Zoramite

A common pattern is to have global partials that share a config. For example, a /views/partials/footer.html might be controlled in the template to use /content/partials/footer.yaml as the partial data in the template.

Normally we define how the partial editor fields work in the partials on the content. We should keep this behavior so that the editor config is still all contained in the /views/partials/ for a partial. To make this work better the editor should support referencing the partial that should be used for the editor config. Something like this:

# /content/partials/footer.yaml
$editor:
  config: /views/partials/footer.html

This would allow all of the editor configurations to consistently be with the partials, but be referenced in places that are not using the partials field, such as shared configuration files.

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