Hi Richard,
Your hint is very good. I would prefer to implement it into "matches title"
and "matches all" search maybe as a fallback from caption to title.
I already found a way to show the caption with a fallback to title at the
results by changing the $:/core/ui/ListItemTemplate
<$view field="title">
to
> <$view field="caption"><$view field="title">
>
Regards
The Bo
Am Donnerstag, 7. April 2016 15:58:33 UTC+2 schrieb RichardWilliamSmith:
>
> Hi The Bo,
>
> If you overwrite the core tiddler $:/core/ui/DefaultSearchResultList, you
> can add a section to make it search the caption field too.
>
> \define searchResultList()
>> //<small>{{$:/language/Search/Matches/Title}}</small>//
>> <$list
>> filter="[!is[system]search:title{$(searchTiddler)$}sort[title]limit[250]]"
>> template="$:/core/ui/ListItemTemplate"/>
>> //<small>Caption Matches</small>//
>> <$list
>> filter="[!is[system]search:caption{$(searchTiddler)$}sort[title]limit[250]]"
>> template="$:/core/ui/ListItemTemplate"/>
>> //<small>{{$:/language/Search/Matches/All}}</small>//
>> <$list
>> filter="[!is[system]search{$(searchTiddler)$}sort[title]limit[250]]"
>> template="$:/core/ui/ListItemTemplate"/>
>> \end
>> <<searchResultList>>
>
>
> This is quite hacky - you'd need to re-do it each time you upgrade to a
> new version - but I'm not sure what the preferred way to over-ride the UI
> actually is.
>
> Regards.
> Richard
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/efbe3600-fe44-4cbd-94c4-8c460e029635%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.