Skip to content

Commit

Permalink
Hide node explorer in the exported HTML
Browse files Browse the repository at this point in the history
When a tiddler is exported in HTML and the tiddler had "Node Explorer"
enabled then it becomes part of the exported HTML.

This PR removes the "Node Explorer" from the exported HTML.
  • Loading branch information
talha131 committed Nov 11, 2022
1 parent 9eed10f commit e88faae
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
code-body: yes
created: 20210501201700405
modified: 20221012131832464
tags:
title: $:/plugins/kookma/viewtemplates/node-explorer-details
type: text/vnd.tiddlywiki

\import $:/plugins/kookma/viewtemplates/node-explorer

<!-- hide node expolorer when a tiddler is exported -->
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]" variable=0>

<$list filter="[all[current]get[node-explorer]!match[hide]] [all[current]!has[node-explorer]]" variable=null>
<$list filter="[subfilter<mainFilter>] +[count[]compare:number:gteq[1]]" variable=null>

<$macrocall
$name=details
label="Node Explorer"
status=""
labelClass="alert alert-secondary py-1 my-2"
srcClass ="alert border-secondary py-0"
src={{$:/plugins/kookma/viewtemplates/node-explorer}}
/>

</$list>
</$list>
</$list>

0 comments on commit e88faae

Please sign in to comment.