as an extension of http://inmysocks.tiddlyspot.com “Search all fields by content” I want to restrict the selection of fields by checkbox. So I end up with the following code:
\define searchInField(field, for)
<$list filter="[tag[mpi]!is[shadow]!is[system]field:$field$/$for$/]"> ‘’ $field$:’’ <$view field=$field$/> in <$link><$view field=“title”/></$link>\end
<$checkbox field=“ort” checked=“ort” unchecked="" default=“ort”> Ort?
<$checkbox field=“wert” checked=“wert” unchecked="" default=“wert”> Wert
</$checkbox>
Suche: <$edit-text tiddler=’$:/temp/temp’ field=‘test_search’/><$list filter="[tag[mpi]!is[shadow]!is[system]fields:include[ ort wert ]] -title -text -tags" variable=“fieldname”>
<$macrocall $name=“searchInField” field=<> for={{$:/temp/temp!!test_search}}/>
</$list>
But how do I replace in “fields:include[ ort wert ]]” ort and wert with the fields? {{!!ort}} does not work unfortunately.


