Allow control over default search results tab

print-window-tiddler
Jermolene 2014-10-28 08:31:09 +00:00
rodzic 04d26e6fae
commit b0a0859b62
3 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

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

Wyświetl plik

@ -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:
```