Skip to content

DISCUSSION: Template referencing within templates #83

@robinroloff

Description

@robinroloff

I would like to add a feature, where you can put single parts of a template into a different yaml file, which can then be referenced within nodes.
Example:
Node 1 has the following structure:

contentcollection:
  card:
    headline
    text
    image

Node 2 has the following structure:

contentcollection:
  headline
  text
  image
  

I would like to be able to extract the "headline, text, image" part and insert it everywhere in different templates
something like:

contentCollection:   
    childNodes:
        $ref: 'resource://My.Package:Templates/Template.yaml'

Template.yaml would then look like:

headline:
   type: 'My.Package:Content.Headline'
text:
   type: 'My.Package:Content.Text'
image:
   type: 'My.Package:Content.Image'

What do you guys think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions