use v5.3.x syntax

This commit is contained in:
pmario 2024-04-21 10:42:12 +02:00
parent 3e8e79b7d2
commit 0347dbc18c
2 changed files with 13 additions and 10 deletions

View File

@ -2,23 +2,23 @@ title: $:/core/ui/ControlPanel/Basics
tags: $:/tags/ControlPanel/Info
caption: {{$:/language/ControlPanel/Basics/Caption}}
\define lingo-base() $:/language/ControlPanel/Basics/
\procedure lingo-base() $:/language/ControlPanel/Basics/
\define show-filter-count(filter)
\whitespace trim
\procedure show-filter-count(filter)
<$button class="tc-btn-invisible">
<$action-setfield $tiddler="$:/temp/advancedsearch" $value="""$filter$"""/>
<$action-setfield $tiddler="$:/temp/advancedsearch/input" $value="""$filter$"""/>
<$action-setfield $tiddler="$:/temp/advancedsearch" $value=<<filter>>/>
<$action-setfield $tiddler="$:/temp/advancedsearch/input" $value=<<filter>>/>
<$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/>
<$action-setfield $tiddler="$:/state/tab--1498284803" $value="$:/core/ui/AdvancedSearch/Filter"/>
<$action-navigate $to="$:/AdvancedSearch"/>
<$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input"/>
''<$count filter="""$filter$"""/>''
''<$count filter=<<filter>>/>''
&#32;
{{$:/core/images/advanced-search-button}}
</$button>
\end
\whitespace trim
|tc-max-width tc-edit-max-width|k
|<<lingo Version/Prompt>> |''<<version>>'' |

View File

@ -3,16 +3,19 @@ title: $:/snippets/allfields
\whitespace trim
\import [[$:/core/ui/ControlPanel/Basics]]
\define renderfield(title)
\function getLingoText() [[$:/language/Docs/Fields/]] [<title>] +[join[]get[text]]
\procedure renderfield(title)
<tr class="tc-view-field">
<td class="tc-view-field-name">
''<$text text=<<__title__>>/>'':
''<$text text=<<title>>/>'':
</td>
<td class="tc-view-field-value">
//<$text text={{$:/language/Docs/Fields/$title$}}/>//
//<<getLingoText>>//
</td>
<td class="tc-view-field-links">
<<show-filter-count "[has[$title$]sort[]]">>
<!-- show-filter-count expects a filter string. It does no more processing -->
<$macrocall $name="show-filter-count" filter=`[has[$(title)$]sort[]]`>>
</td>
</tr>
\end