Hi,
we're trying to figure out what's the best way to insert one modular in specific a specific block in multiple pages. We thought it would be nice to use the page-inject plugin but we also wanted to put the block in different places (Like section top or bottom). We started using a List where you can put the modular-link and a selectbox where we are able to select the destination of the block. Is there an possibility to access the content of the link in our template with page-inject? Because obviously we only get the normal link (<a href="/bloecke/_untere-navigation">plugin:page-inject</a>).
Or does anyone has another/better solution?
Thanks, Phil!
{% for block_entry in header.blocks %}
{% if block_entry.select == top %}
{{ block_entry.link|markdown }}
{% endif %}
{% endfor %}
header.blocks:
name: blocks
type: list
label: Zugeordnete Blöcke
fields:
.link:
type: text
label: Pfad des blocks
placeholder: /bloecke/_ihrBlock
.select:
type: select
label: Wo soll der Block angezeigt werden
top: blue
options:
top: Block oben
bottom: Block unten
---