How to hide items in exported HTML tiddler?

Anything tagged with $:/tags/ViewTemplate ends up in the tiddler body. But when I export a single tiddler in HTML, that component might not be relevant at all.

For example, Shiraz’s Node Explorer is relevant when a tiddler is inside a TW. But if it is exported individually then the Node Explorer loses its relevance and utility.

How do I make sure that certain $:/tags/ViewTemplate do not become part of the exported HTML tiddler?

<$list filter="[<tv-config-toolbar-icons>prefix[yes]]" variable=0>

I am invisible in html export

</$list>

Hm… It is impisible to write in this forum
/tv-config-toolbar-icons/ prefix[yes] with <>

1 Like

@Siniy-Kit You can use `single backticks` to create inline code elements in markdown. Or

``` 
tripple backticks to start and end code blocks.
```

I did edit your post accordingly. So you can see source if you edit your post

Thank you for the solution. Can anyone please explain how is this filter working?

I looked through the documentation and still could not understand how it works.

tv-config-toolbar-icons is a variable that controls whether toolbar buttons display icons.

How does it affect the exported HTML when used in conjunction with filter?

Many years ago I noticed that there is no button images in static cut https://tiddlywiki.com/static/LazyLoading.html

I open buttons code https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fhome and find filter, that hides buttons in static cut.

And I dont know how it works…

I suppose the example home button contains, the following which perhaps never tests true?

<$list filter="[<tv-config-toolbar-icons>match[yes]]">
and
<$list filter="[<tv-config-toolbar-text>match[yes]]">