You could try hacking Jed's $:/macros/Forums/SearchBar code. Looks pretty 
easy.

First find $:/core/ui/DefaultSearchResultList and clone it, perhaps as 
$:/core/ui/DefaultSearchResultList2. Make your sort changes to it.

Then open up $:/macros/Forums/SearchBar from Jed's code, scroll to the 
bottom where you see the transclusion:

{{$:/core/ui/SearchResults}}

and replace it with

{{$:/core/ui/DefaultSearchResultList2}}

This worked in my quick test. Although it's a bit of a cheat because it 
ignores a step from the original core which I think was meant to make 
search engines selectable -- but in this case you're making your own engine 
selection.

Good luck
-- Mark

On Tuesday, November 20, 2018 at 5:16:19 AM UTC-8, michaelha...@gmail.com 
wrote:
>
> Funnily enough, I found a thread this morning for creating search bars: TW5: 
> just a <<search>> search box 
> <https://groups.google.com/forum/#!topic/tiddlywiki/YcFmY9X4D5Q>.
>
> I have taken the code and added it to my TiddlyWiki, and by changing 
> "$:/temp/search" to "$:/temp/searchjournal", the search bar is now separate 
> from the main search bar on the right. 
>
> Now my question becomes, having created another search bar: is there a way 
> I might be able to create a new or modified 
> "$:/core/ui/DefaultSearchResultList" specifically for 
> "$:/temp/searchjournal"?
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8002f630-9339-4aa4-bba3-062236267bf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to