I am trying to make the dynamic placeholders with different numbers in the for loop. Now when I make the placeholder I only get the same name and number at the end (test-1-1). How to make it so that inside the for loop I have the dynamic placeholders. I am also using Promo rendering.
This is the code:
{{for i_child in i_item.children}}
<div class="section anchor-header" id="{{i_child.Anchor.raw}}">
<div class="container">
<div class="row">
<div class="col">
<h2 class="anchor-header-title">
{{i_child.Name}}
</h2>
<button type="button" class="anchor-header-button anchor-link">
<svg class="icon icon-arrow" aria-hidden="true">
<use xlink:href="#icon-arrow"></use>
</svg>
TOP
</button>
</div>
</div>
</div>
</div>
{{sc_placeholder 'test*'}} //this is the placeholder
{{end}}
{{ sc_placeholder "mydynamic" }}
?