mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 20:10:03 +00:00
de6e0d1c1e
We add an attribute to tiddler frames in the DOM giving the title of the corresponding tiddler
12 lines
664 B
Plaintext
12 lines
664 B
Plaintext
title: $:/core/ui/ViewTemplate
|
|
|
|
\define frame-classes()
|
|
tc-tiddler-frame tc-tiddler-view-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ $(tiddlerTagClasses)$
|
|
\end
|
|
\define folded-state()
|
|
$:/state/folded/$(currentTiddler)$
|
|
\end
|
|
<$set name="storyTiddler" value=<<currentTiddler>>><$set name="tiddlerInfoState" value=<<qualify "$:/state/popup/tiddler-info">>><$tiddler tiddler=<<currentTiddler>>><div class=<<frame-classes>> data-tiddler-title=<<currentTiddler>>><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
|
</div>
|
|
</$tiddler></$set></$set>
|