I’m studing cascade filter.
Now i have:
tiddler: $:/config/FieldEditorFilters/status
tagged: $:/tags/FieldEditorFilter
text: [<currentField>match[status]then[$:/core/ui/EditTemplate/fieldEditor/status]]
and
tiddler: $:/core/ui/EditTemplate/fieldEditor/status
tagged: -
text:
<$select tiddler=<<currentTiddler>> field="status" default="">
<option value=''>Seleziona...</option>
<option value='attivo'>attivo</option>
<option value='da-fare'>da fare</option>
<option value='in-attesa'>in attesa</option>
<option value='completo'>completo</option>
</$select>
this is working, great.
BUT
The previous status was for tiddler tagged “project” and I have tiddler that have the status field but with a different purpose.
Now I’ve modified the previous:
tiddler: $:/core/ui/EditTemplate/fieldEditor/status
text:
<$list filter="[all[current]tag[progetto]]">
<$select tiddler=<<currentTiddler>> field="status" default="">
<option value=''>Seleziona...</option>
<option value='attivo'>attivo</option>
<option value='da-fare'>da fare</option>
<option value='in-attesa'>in attesa</option>
<option value='completo'>completo</option>
</$select>
</$list>
<$list filter="[all[current]!tag[progetto]]">
<$edit-text tiddler=<<currentTiddler>> field="status" tag="input" default="" class="tc-edit-texteditor tc-edit-fieldeditor" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}} cancelPopups="yes"/>
</$list>
The question is: can I filter in the cascade splitting the different status field uses?
Can I add tag[progetto] to the filter?
tiddler: $:/config/FieldEditorFilters/status
tagged: $:/tags/FieldEditorFilter
text: [<currentField>match[status]<currentTiddler>tag[progetto]then[$:/core/ui/EditTemplate/fieldEditor/status-progetto]]
this is’nt working for me.
What I’m doing wrong in the filtering?
[<currentField>match[status]<currentTiddler>tag[progetto]then[$:/core/ui/EditTemplate/fieldEditor/status-progetto]]
Thanks
Marco