On Saturday, April 3, 2021 at 6:36:39 AM UTC-7 jln wrote:

> I have created a custom template that adds, at the top of the tiddler, a 
> link to my Nextcloud platform if the "url-nxc" field is filled. This works 
> very well, but the only small issue I have is that this link is still 
> visible when the tiddler is folded.
> How to resolve this problem?
>

wrap your custom template content within a $reveal that checks the value of 
<<folded-state>>, like this:

<$reveal tag="div" type="nomatch" stateTitle=<<folded-state>> text="hide">
... your content here ...
</$reveal>
 
Note: *<<folded-state>>* is defined in *$:/core/ui/ViewTemplate*, so it is 
automatically available to all templates tagged with *$:/tags/ViewTemplate*

enjoy,
-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2116ace0-9108-4b7d-82e1-11546c25799en%40googlegroups.com.

Reply via email to