Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2023-04-04 17:40:34

etc
Developer
Registered: 2010-11-11
Posts: 4,881
Website GitHub

Re: Use parse inside an admin plugin

That actually has given me an idea of level attribute, so in dev your public-side construction could be weirder but faster:

<txp:category_list exclude parent="activites" children break="">
<txp:if_category category level="0">
    <optgroup label="<txp:category title />"><+></optgroup>
<txp:else />
    <option value="<txp:category />"><txp:category title /></option>
</txp:if_category>
</txp:category_list>

Offline

#14 2023-04-04 21:29:49

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,507
Website GitHub Twitter

Re: Use parse inside an admin plugin

Yeah

Nice code it s neater than before 👏

Offline

Board footer

Powered by FluxBB