On Friday, October 18, 2013 3:02:37 PM UTC-7, Arc Acorn wrote: > If I just paste: > <script> > var tid = story.findContainingTiddler(place); > tid = tid ? tid.getAttribute('tiddler') : ''; > window.parent.document.getElementById('iTitle').innerHTML=tid; > </script> > In all the tiddlers in my TW It would work as I want. > So my question is where can I put the script to get it to be ran when any > tiddler is opened as if it was part of the tiddler without having to add it > into every tiddler. >
You can put this in your ViewTemplate: <span macro="tiddler NameOfTiddlerContainingScript"></span> enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"... http://www.TiddlyTools.com/#Donations Professional TiddlyWiki Consulting Services... Analysis, Design, and Custom Solutions: http://www.TiddlyTools.com/#Contact -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.