I have two objectives
- Save new filters as templates in the advanced search- filter tab
- add drag and drop functionality to search results of advanced search- filter tab
-
Save new filters as templates in the advanced search- filter tab
I created a tiddler titled$:/core/ui/AdvancedSearch/Filter/FilterButtons/Add new filter
and tagged it with$:/tags/AdvancedSearch/FilterButton
Text field contains code given below
<$button class="tc-btn-invisible" > <$action-createtiddler $basetitle="$:/core/Filters/" tags="$:/tags/Filter" $template="$:/core/Filters/template" filter={{$:/temp/advancedsearch}} > <$action-sendmessage $message="tm-edit-tiddler" $param=<<createTiddler-title>>/> </$action-createtiddler> new filter</$button>
It working and I want a few more additions. Most of my filter searches have this format [field:fieldname[fieldvalue]]
. I want the newly created filter template tiddler to have a field called description
whose field-value should be fieldname
in the filter used. Also tiddler should have a title along this format $:/core/Filters/fieldname
- Add drag and drop functionality to search results of advanced search- filter tab
For this I am using the filter-pill macro from this discussion about field macro
<<filter-pill "filter-used" """drag and drop""" "" "" >>
Here the filter-used
is equal to {{$:/temp/advancedsearch}}
, but using which syntax should I use it in the filter-pill macro.
Here is the demo