Context search with additional field

59 views
Skip to first unread message

unread,
Aug 11, 2021, 12:25:01 PM8/11/21
to TiddlyWiki
Hello Forum,

how can my field 'erstellt' be displayed next to the tiddler title (and not in next line)?
Context.png
Context Search:
\define lingo-base() $:/language/Search/
<$linkcatcher to="$:/temp/advancedsearch">

<<lingo Standard/Hint>>

<div class="tw-search"><$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/><$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$link to="" class="btn-invisible">{{$:/core/images/close-button}}</$link></$reveal></div>

</$linkcatcher>

<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
<div class="tw-search-results">

<<lingo Standard/Matches>>

<$list filter="[!is[system]search{$:/temp/advancedsearch}sort[title]limit[250]]">
{{!!title||$:/core/ui/ListItemTemplate}}@@<span style="font-size:0.7em;color:rgb(144, 238, 144)" >  <$transclude field='erstellt'/></span>@@
<$context term={{$:/temp/advancedsearch}}/>
</$list>

</div>

</$reveal>

<$reveal state="$:/temp/advancedsearch" type="match" text="">


</$reveal>

Any ideas?

Thanks
Stefan

Charlie Veniot

unread,
Aug 11, 2021, 3:03:08 PM8/11/21
to TiddlyWiki
I took some liberties here, and check my spelling (is "erstellt"?)

How about
<$link/> <span style="font-size:0.7em;color:rgb(144, 238, 144)" >  {{!!erstellt}}</span>

instead of

{{!!title||$:/core/ui/ListItemTemplate}}@@<span style="font-size:0.7em;color:rgb(144, 238, 144)" >  <$transclude field='erstellt'/></span>@@

I think getting the title with that transclusion template adds a line-feed/carriage-return before displaying the date.

unread,
Aug 11, 2021, 3:44:52 PM8/11/21
to TiddlyWiki
Thanks cj, works perfect!

<$link/> &nbsp;<span style="font-size:0.7em;color:rgb(144, 238, 144)" >  {{!!erstellt}}</span>
<br>

Charlie Veniot

unread,
Aug 11, 2021, 3:54:15 PM8/11/21
to TiddlyWiki
Truth be told, I was just aiming for good enough, or at least giggles-worthy.

If it is perfect for your needs, then I'm feeling pretty darn good about myself: thanks !
Reply all
Reply to author
Forward
0 new messages