kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Allow control over default search results tab
rodzic
04d26e6fae
commit
b0a0859b62
|
|
@ -7,7 +7,7 @@ title: $:/core/ui/SearchResults
|
||||||
<$transclude/>
|
<$transclude/>
|
||||||
</$list>
|
</$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>
|
</$list>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
title: $:/config/SearchResults/Default
|
||||||
|
|
||||||
|
$:/core/ui/DefaultSearchResultList
|
||||||
|
|
@ -13,6 +13,8 @@ To create a new search result visualisation:
|
||||||
# Create a new tiddler tagged [[$:/tags/SearchResults]]
|
# Create a new tiddler tagged [[$:/tags/SearchResults]]
|
||||||
# Use the widget variable ''searchTiddler'' to access the title of the tiddler containing the current search term
|
# 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:
|
Here is an example of an alternative visualisation that displays results in reverse chronological order:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue