> It appears what I thought I wanted wasn't what I needed. What I wanted was
> a way to evaluate javascript. I want to use the name of the current tiddler
> (the one being rendered) to set up and display a PDF (that has the same
> name stem as the tiddler).
In ViewTemplate, write:
<div class='tiddler' macro='tiddler ShowPDFForTiddler with:
{{tiddler.title}}'>
In ShowPDFForTiddler, write your syntax for showing a PDF (e.g. an
iframe), and use $1 in the place where you want the tiddler title to
be inserted. Something like this:
<html><iframe width="100%" height="640px" src="$1.pdf"></iframe></
html>
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.