Didier
Hello Peter
I worked a little further with your powerful extensions and still encountered a “limitation”, although I can live with it, but it may again be due to my ignorance.
I want to use accordions nested in tabs, both through snippets.
I have defined 2 snippets, one for tabs and one for accordions, tags of both take nesting into account and both work perfectly separately. Articles Anywhere tag also takes nesting into consideration.
Nesting accordions in tabs works correctly if I define the tab directly in the article and call up articles within the tabs that call up accordions via snippets.
However, if I call up (the same) tabs via a snippet that contains the same articles that call up accordions via snippets, the accordions are displayed as nested.
Tried a lot already: changing order of plugins, configuring Regular Labs extensions, code...
Is there anything I can do about it?
Thanks,
Didier.
Code snippets:
<p>{articles-%naam% category:alias="%artikelcategorie-alias%" tags="%artikel-tag%" ordering="%artikel-order%"}</p>
<p>{tab-%naam% title="[title]" theme="accent-lines" color="blue" positioning="top" alignment="left"}</p>
<p>[article]</p>
<p>{if is-last}{/tabs-%naam%}{/if}</p>
<p>{/articles-%naam%}</p>
<p>{articles-%naam% category:alias="%artikelcategorie-alias%" tags="%artikel-tag%" ordering="%artikel-order%"}</p>
<p>{accordion-%naam% title="[title]" theme="accent-lines" color="blue" open="false" icons="true"}</p>
<p>[article]</p>
<p>{if is-last}{/accordions-%naam%}{/if}</p>
<p>{/articles-%naam%}</p>
Code article:
<h5>Accordion inside tab - tab encoded in article with 2 articles who call accordions via snippets - OK</h5>
<p>{tab-1 title="Plannen" theme="accent-lines" color="blue" positioning="top" alignment="left"}</p>
<p>{snippet alias="artikel-accordion" naam="plannen" artikelcategorie-alias="appartement-deelartikels" artikel-tag="plannen" artikel-order="volgordenum ASC"}</p>
<p>{tab-1 title="Handleidingen"}</p>
<p>{snippet alias="artikel-accordion" naam="handleidingen" artikelcategorie-alias="appartement-deelartikels" artikel-tag="handleidingen" artikel-order="volgordenum ASC"}</p>
<p>{/tabs-1}</p>
<h5>Accordion inside tab - tab via snippet with 2 (same) articles who call accordions via snippets - NOK</h5>
<p>{snippet alias="artikel-tabs" naam="plannen-handleidingen" artikelcategorie-alias="appartement-deelartikels" artikel-tag="plannen-handleidingen" artikel-order="volgordenum ASC"}</p>
See result: