Skip to content

Dynamic node names #11

@satyrius

Description

@satyrius

How to create a few nodes in a template with auto-generated names (e.g. for column design)

{% blocknode 'page/column-1.md' %}
  ## Luke
{% endblocknode %}
{% blocknode 'page/column-2.md' %}
  ## Leia
{% endblocknode %}
{% blocknode 'page/column-3.md' %}
  ## Han
{% endblocknode %}

I want do it like this

{% with forloop.counter|format:"page/column-%s.md" as uri %}
  {% blocknode uri %}
    ## Luke
  {% endblocknode %}
{% endwith %}

But got and error

Unknown plugin "None" or improperly configured pipeline for node "i18n://ru-ru@".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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