1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Allow control over default search results tab

This commit is contained in:
Jermolene 2014-10-28 08:31:09 +00:00
parent 04d26e6fae
commit b0a0859b62
3 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@ title: $:/core/ui/SearchResults
<$transclude/>
</$list>
""">
<<tabs "[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" "$:/core/ui/DefaultSearchResultList">>
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/>
</$list>
</div>

View File

@ -0,0 +1,3 @@
title: $:/config/SearchResults/Default
$:/core/ui/DefaultSearchResultList

View File

@ -13,6 +13,8 @@ To create a new search result visualisation:
# Create a new tiddler tagged [[$:/tags/SearchResults]]
# Use the widget variable ''searchTiddler'' to access the title of the tiddler containing the current search term
If you'd like the new visualisation to be the default, create a tiddler called [[$:/config/SearchResults/Default]] containing the title of the tiddler containing the search visualisation that you want to display by default.
Here is an example of an alternative visualisation that displays results in reverse chronological order:
```