Love it - thanks for sharing!
Jonathan
On Wednesday, February 12, 2014 9:14:56 AM UTC-5, Alberto Molina wrote:
>
> Jon,
>
> Problem identified. It's my fault. When I wrote:
>
> Correction: replace the fourth line with this one:
>> <$list filter="[prefix{$:/temp/search}limit[1]]
>> -[tags[]prefix{$:/temp/search}]"><hr>
>
>
> I forgot to add </$list> at the end of the line (after <hr>). But the my
> tiddler "$:/_ui/SearchBox" is correct.
>
> Besides that, your code duplicates searches. Remove all the contents
> between <div…> and </div>, and replace with the following:
>
> //<small><$count filter="[!is[system]search{$:/temp/search}]"/>
> matches</small>//
>
> <$list filter="[tags[]prefix{$:/temp/search}]"><$transclude
> tiddler="$:/core/ui/TagTemplate"/></$list>
> <$list filter="[tags[]prefix{$:/temp/search}limit[1]]"><hr></$list>
> <$list filter="[prefix{$:/temp/search}] -[tags[]prefix{$:/temp/search}]"
> template="$:/core/ui/ListItemTemplate"/>
> <$list filter="[prefix{$:/temp/search}limit[1]]
> -[tags[]prefix{$:/temp/search}]"><hr></$list>
> <$list filter="[!is[system]search{$:/temp/search}]
> -[prefix{$:/temp/search}] +[sort[title]limit[250]]"
> template="$:/core/ui/ListItemTemplate"/>
>
> Line 1 is the counter.
> Line 2 shows the tags matching your search. You can add the
> emptyMessage="whatever" in <$list filter="…" emptyMessage="…">
> Line 3 shows an horizontal rule. Remove if you don't want it.
> Line 4 shows the tiddlers which are not tags and whose title matches your
> search. Add an emptyMessage if you want. And add a limit if you want.
> Line 5 shows an horizontal rule.
> Line 6 shows the regular results (text within tiddlers) without the
> previous results.
>
> Tell me if it works as you want.
>
> Alberto
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.