Here is a proof-of-concept macro I wrote to see if I can get it working:
config.macros.tiddlerName = { text: "" };
config.macros.tiddlerName.handler =
function(place,macroName,params,wikifier,paramString,tiddler)
{
var string = tiddler.getAttribute('tiddler');
wikify(string, place, null, null);
}It errors-out with 'tiddler is undefined. -- Bobman On Tue, Jul 21, 2009 at 2:16 PM, FND <[email protected]> wrote: > > > Is it possible, within a script, to know the name of the tiddler that > > is calling it? > > Macros have access to the tiddler variable: > http://tiddlywiki.org/wiki/Dev:Macros > > If you're talking about using Eric's InlineJavaScriptPlugin, I think > that passes similar information - check the documentation perhaps? > > > -- F. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

