Toggle Elements by class or by wildcard for footnoteplugin

75 views
Skip to first unread message

Jan

unread,
Apr 22, 2015, 10:29:59 AM4/22/15
to tiddlyWiki
Hello,
I was happy to find Saq's footnotesplugin for TWC because it makes it
possible to use TWC as a scientific Tool.
http://tiddlywiki.squize.org/#FootnotesPlugin.

I want to remember the sources, but for normal Printing it makes sense
to omitt the footnotes.
I have been looking for a way to Toggle them. I tried two alternatives
and each time encountered Problems.

The ToggleElementsMacro
(http://devpad.tiddlyspot.com/#ToggleElementMacro) needs an ID and each
footnoteholder has a different one for each tiddler so I tried a wildcard.
<<toggleElement
"*[id$='footnote']"
"Fußnoten"
"Fußnoten anzeigen/ausblenden"
""
""
"hide"
>>

I guess the syntax isn't right, so it does not work

The other way was to the ToggleClassScript right out of Erics scrapbin.

http://www.tiddlytools.com/#TestTiddler

but I don´t get this to work either...

Thank for help...

Jan


Eric Shulman

unread,
Apr 22, 2015, 2:07:59 PM4/22/15
to tiddl...@googlegroups.com
On Wednesday, April 22, 2015 at 7:29:59 AM UTC-7, Jan wrote:
Hello,
I was happy to find Saq's footnotesplugin for TWC because it makes it
possible to use TWC as a scientific Tool.
http://tiddlywiki.squize.org/#FootnotesPlugin.

I want to remember the sources, but for normal Printing it makes sense
to omitt the footnotes.
I have been looking for a way to Toggle them. I tried two alternatives
and each time encountered Problems.

If you just want to suppress the footnotes when printing, you can do this with CSS.

Put the following in your [[StyleSheet]] tiddler:
@media print { .footnoteholder { display:none; } }

enjoy,
-e
 

Jan

unread,
Apr 23, 2015, 6:53:06 AM4/23/15
to TiddlyWiki
Hi Eric,
thanks for your help.
A stylesheet print is a clean solution but I need more Options. I need a
toggle, in my case it should be turned off by default.
I tried to put your ToggleClassScript right in the FootnotePlugin, to
create a button, which I can transclude from my menu.

Jan
Reply all
Reply to author
Forward
0 new messages