Hello everyone, sorry but I’ve been a little busy and that’s why I couldn’t answer you sooner.
The truth is that I don’t know what I did the first time but following @Matteo’s advice and applying it to the example model that I had taken from Soren it works perfectly.
This would be the code that worked for me:
\whitespace trim
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-subtitle">
<div>
<button class="tc-btn-invisible"disabled>{{$:/core/images/home-button}}</button> Created <$view field="created" format="date" template={{$:/language/Tiddler/DateFormat}} />
</div>
<div>
<button class="tc-btn-invisible"disabled>{{$:/core/images/list}}</button> Updated <$view field="modified" format="date" template={{$:/language/Tiddler/DateFormat}} />
</div>
</div>
</$reveal>
However, if I try to do it from the new subtitle tiddlers that have appeared in the latest versions, I can’t get it to work out well. If I try to get the results in two lines, a displacement appears in the lower text that I don’t know how to avoid. So that they appear in two lines, I use a <br>
at the end of the first code.
If I do nothing, the two pieces of information appear one after the other and without any problem, although I like the way the information appears in two lines better.
What I do is modify the tiddler $:/core/ui/ViewTemplate/subtitle/modified
and create a new one called $:/xabriña/subtitle/created
(thanks @Tw_Tones, you are absolutely right about how I should name new tiddlers that do not form part of the core of Tiddlywiki).
The text I put in them is the following:
<button class="tc-btn-invisible"disabled>{{$:/core/images/list}}</button> Updated <$view field="modified" format="date" template={{$:/language/Tiddler/DateFormat}} /><br>
and
<button class="tc-btn-invisible"disabled>{{$:/core/images/home-button}}</button> Created <$view field="created" format="date" template={{$:/language/Tiddler/DateFormat}} />
Do you know how to fix this?
Thank you so much.