Create defined List by Checkbox

Hello forum,

how do I wrap this selection into <$list filter="..."/>?
Also the output should be counted and shown.

<span style="color: rgb(255,201,102)">Show: </span>&nbsp;
<$checkbox field="textTid" checked="[!has[Draft.of]!is[system]has[erstellt]" unchecked="" default="[!has[Draft.of]!is[system]has[erstellt]"> Tiddler (with date)  </$checkbox>
&nbsp; 
<$checkbox field="allTid" checked="[!is[system]" unchecked="" default="[!has[Draft.of]!is[system]has[erstellt]" field="ort" unchecked="" field="textTid" unchecked=""> all Tiddler (with / without date) </$checkbox>
&nbsp;
<$checkbox field="ort" checked="[is[system]" unchecked="" default="[!has[Draft.of]!is[system]has[erstellt]"
field="textTid" unchecked=""> System Tiddler only </$checkbox>
&nbsp;&nbsp; &nbsp; &nbsp; 
<span style="color: rgb(255,201,102)">sort by: </span>
&nbsp;
<$checkbox field="dat" checked="sort[published]]" unchecked="sort[title]]" default="sort[published]]"> date </$checkbox>
&nbsp; 
<$checkbox field="abc" checked="sort[title]]" unchecked="sort[published]]" default="sort[published]]" field="dat" unchecked="" > alphabetical </$checkbox>
&nbsp;&nbsp; &nbsp; &nbsp; 
<$checkbox field="sort" checked="!" unchecked="" default="!"> reverse sort </$checkbox>


<br>''Filter is:'' {{!!textTid}}{{!!sort}}{{!!dat}}

Thanks
Stefan

Try “[{!!textTid}] [{!!sort}] [{!!dat}] +[join[]]”

no output with:

<$list filter="[{!!textTid}] [{!!sort}] [{!!dat}] +[join[]]">
</$list>

Note that it is unsafe to wrap the filter in single ". Use either triple """ or single '. This is possibly the reason why you don’t get the desired results, because the content in your filter can contain " and thus ruins the filter.

@StS tell us something about the list you want to use the created filter in.

As created defind in the code the filter can’t contain " - see:

**Filter is:** [!has[Draft.of]!is[system]has[erstellt]!sort[title]]

For this is also no output:

<$list filter="""[{!!textTid}] [{!!sort}] [{!!dat}] +[join[]]""">
</$list>

It can be unsafe, but in this case it is only filter formats in use. However that is good general rule especially with transclusions of fields or tiddlers.

Ah perhaps try setting a variable to your filter then use it as a subfilter

<$set name=myfilter filter="[{!!textTid}] [{!!sort}] [{!!dat}] +[join[]]">
<<myfilter>>
<$list filter="[subfilter<myfilter>]">

</$list>
</$set>

Tested OK

First you construct the filter as a variable then you use it as a filter.
There may be other ways

I wish to choose, what and how my tiddlers should be shown. The output should be counted:

<$set name=total filter="[subfilter<myfilter>count[]]">

</$set>

@TW_Tones
Thanks - works as expected!