[1] is where you suggested I post my question in this forum
[2] lists common-sense steps for requesting support, including a minimal
test case, which I have done
[3] is an informative list of functions I did not know existed before (I'll
bookmark that one!) but none of them appear to address my question
[4] describes the Story class vs. the Store class. Also useful, but given my
unfamiliarity with the differences between Story and Store, not especially
useful to me.
I feel like I'm in a situation where I can't ask the question unless I
already know the answer, which I suspect is either a simple one ("call
such-and-such a function") or an impossible one ("you can do it but you have
to manually walk the entire list of tiddlers making soundex matches...").
I will try installing Firebug and see if I can get it to work, but it was my
hope I could get away with a simple answer from the community.
--
Bobman
On Tue, Jul 21, 2009 at 3:37 PM, FND <[email protected]> wrote:
>
> > Is there some way within a macro to get the name of the tiddler that
> > is calling it? I wrote a little proof-of-concept macro and it fails
> > with "tiddler is undefined" [...]
>
> As stated in the original thread[1], I get the following error on the
> macro[2]:
> Error while executing macro <<tiddlerName>>:
> TypeError: tiddler.getAttribute is not a function
>
> Either way, the macro is being passed a *store*[3] tiddler (JavaScript
> object), not a *story*[4] tiddler (DOM element).
> So instead of tiddler.getAttribute("tiddler"), simply use the title
> property (tiddler.title).
> The best way to get a feel for this is to inspect the object with Firebug:
> console.log(tiddler);
>
> HTH.
>
>
> -- F.
>
>
> [1] http://groups.google.com/group/TiddlyWiki/t/95fa1964f3fb4faf
> [2] http://tiddlywiki.org/wiki/Troubleshooting
> [3] http://tiddlywiki.org/wiki/Dev:TiddlyWiki
> [4] http://tiddlywiki.org/wiki/Dev:Story
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---