Hi TiddlyCommunity,
I came up with a little bit of code myself. I found it from a old post and it basicly uses the Standard Advanced Search to find all user fields that have the searched word and link the Tiddlers. I copied the Advanced Search core Tiddler to have everything on one Tiddler, but the problem is it only works when i put it after the fieldfilter. My Code looks like this:
\define searchInField(field, for)
<$list filter="[!is[shadow]!is[system]field:$field$/$for$/]">$field$:
<ul><li><$link><$view field="title"/></$link> </li></ul></$list>
\end
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
<$list filter="[!is[shadow]!is[system]fields[]] -title -text -tags" variable="fieldname">
<$macrocall $name="searchInField" field=<<fieldname>> for={{$:/temp/advancedsearch}}/>
</$list>
</$reveal>
<div class="tc-advanced-search">
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]" default="$:/core/ui/AdvancedSearch/System" actions="""<$action-setfield $tiddler="$:/state/advancedsearch/currentTab" text=<<currentTab>>/>""" explicitState="$:/state/tab--1498284803"/>
</div>
I want to put the Advanced Searchbar first. Its probably not that hard but i fail at it anyways. So how do i get it on top of the filter?
And my second question is, how do i modify the fieldfilter list. Currently the filter displays the matching fields and the linked Tiddler one by one. Is there a way to combine them into one list for each user field? For example i combine all Linked Tiddler with the user field "field1" into a list and all user field "field2" into one list. Because right now it displays them separate. So when i search for "person" it looks like this:
field1:
field1:
field2:
But it would look better if it lists them as:
field1:
The code itself does exactly what i want but its looks not that nice. I would appreciate an suggestion. Thanks