diff --git a/core/ui/SearchResults.tid b/core/ui/SearchResults.tid index 93acc607c..a5246250a 100644 --- a/core/ui/SearchResults.tid +++ b/core/ui/SearchResults.tid @@ -7,7 +7,7 @@ title: $:/core/ui/SearchResults <$transclude/> """> -<> +<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/> diff --git a/core/wiki/config/SearchResultsDefault.tid b/core/wiki/config/SearchResultsDefault.tid new file mode 100644 index 000000000..92f872f2a --- /dev/null +++ b/core/wiki/config/SearchResultsDefault.tid @@ -0,0 +1,3 @@ +title: $:/config/SearchResults/Default + +$:/core/ui/DefaultSearchResultList \ No newline at end of file diff --git a/editions/prerelease/tiddlers/Customising search results.tid b/editions/prerelease/tiddlers/Customising search results.tid index 0816c7061..b08500421 100644 --- a/editions/prerelease/tiddlers/Customising search results.tid +++ b/editions/prerelease/tiddlers/Customising search results.tid @@ -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: ```