mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-09 15:26:33 +00:00
Allow control over default search results tab
This commit is contained in:
parent
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>
|
||||||
|
3
core/wiki/config/SearchResultsDefault.tid
Normal file
3
core/wiki/config/SearchResultsDefault.tid
Normal file
@ -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:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user