On Tuesday, June 18, 2013 8:15:08 AM UTC-8, PMario wrote:
>
> I think, it would be easier, if you tell us, what you want to achieve. You
> said, your code doesn't do, what you want. So how should we know, what you
> want?
>
> Some guesswork: If you put this into any tiddler it will display the
> hidden "section" text
>
> <<tiddler {{tiddler.title + "##section"}}>>
>
>
> Hey! I didn't bump this thread!
In terms of the code, what I have done so far is to change my strategy. At
first I wanted <<tiddler...>> to work inside a template. With some advice
from Eric, I changed it to a macro="tiddler..." format.
What I have found so far is that apparently for evaluated expressions {{}}
to work inside of "macro=" , it needs to use single quotes. And it only
works inside of "macro=" and nowhere else in the template tiddler.
Also, "tiddler.title" doesn't work inside the template tiddler. Thus the
long expression
{{story.findContainingTiddler(place).getAttribute("tiddler")+"##SECTION }}
is still required. What I would have liked was to use the name right inside
the ViewTemplate, but as far as I can tell what I had to do instead was
transclude a separate tiddler, passing it the evaluated name to work with.
My overall goal is to create a TiddlyWiki that will allow me to view
receipts stored as PDF's. Ideally I would be able to view the PDF and its
related text side-by-side in a tiddler. I could copy OCR'd text from the
PDF to the corresponding tiddler, and tweak it a bit as needed. This is
mostly working, except that currently I can't float the embedded PDF and
the text side-by-side. They have to be one above the other. I need to work
out details for sub-directories, and for dragging and dropping the PDF's.
This same system would allow me to create photo albums. The TW would work
as an overlay, providing the ability to search and display images. It would
not, of course, actually store the contents of the images.
Thanks,
Mark
--
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.