Tagger icon indicating copy to clipboard operation
Tagger copied to clipboard

Add new 'groupTpl' feature

Open davidpede opened this issue 6 years ago • 0 comments

What does it do?

Adds a new optional tpl parameter that wraps all tags with their relevant group details.

Believe I've kept this backward compatible. Group placeholders are available using group. prefix, tags are available under [[+tags]]. rowTpl and outTpl are unaffected.

Use like:

[[TaggerGetTags?
    &groups=`2,3,4,5`
    &groupTpl=`@INLINE <optgroup label="[[+group.name]]">[[+tags]]</optgroup>`
    &rowTpl=`@INLINE <option value="[[+uri]]">[[+tag]]</option>`
]]

Why is it needed?

Adds support for things like optgroup where you need the group placeholders and all the tags the group contains in one tpl.

davidpede avatar Mar 13 '19 15:03 davidpede