1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Improve view templates to show tag children (#8362)

This commit is contained in:
springerspandrel 2024-07-11 09:58:17 -04:00 committed by GitHub
parent 8f4bdce534
commit 64eb1be708
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 5 deletions

View File

@ -0,0 +1,11 @@
created: 20240710161501472
list-after: $:/core/ui/ViewTemplate/body
modified: 20240710165557977
tags: $:/tags/ViewTemplate
title: $:/editions/tw5.com/empty-tag-node-template
type:
<$list filter='[<storyTiddler>is[missing]] :filter[tagging[]]'>
The following tiddlers are tagged with <<tag>>:
</$list>
<<list-links filter:"[<storyTiddler>is[missing]tagging[]]" class:"multi-columns">>

View File

@ -1,19 +1,19 @@
created: 20220719120233104
list-after: $:/core/ui/ViewTemplate/body
modified: 20220719120319922
modified: 20240710163659672
tags: $:/tags/ViewTemplate
title: $:/editions/tw5.com/systemtag-template
<$list filter='[all[current]prefix[SystemTag: ]]'>
<$let tag={{{ [all[current]removeprefix[SystemTag: ]] }}} >
<$let thisTag={{{ [all[current]removeprefix[SystemTag: ]] }}} >
<$list filter='[all[tiddlers+shadows]tag<tag>limit[1]]' emptyMessage='(No tiddlers are currently tagged with <<tag>> )'>
<$list filter='[all[tiddlers+shadows]tag<thisTag>limit[1]]' emptyMessage='(No tiddlers are currently tagged with <<tag>> )'>
The following tiddlers are tagged with <<tag>>
The following tiddlers are tagged with <<tag $(thisTag)$ >>
<table>
<tr><th></th><th>caption</th></tr>
<$list filter='[all[tiddlers+shadows]tag<tag>sort[]]'>
<$list filter='[all[tiddlers+shadows]tag<thisTag>sort[]]'>
<tr>
<td><$link/></td>
<td><$transclude field="caption"><$transclude field="description"><$view field="title"/></$transclude></$transclude></td>