> Was finally able to put up a test case on tiddlyspot:
> http://extendedbrain.tiddlyspot.com/

Test cases make it MUCH easier to provide help!

Here's the problem:

1) Your macro handler function incorrectly declares only 5 arguments
rather than 6, omitting the 'tiddler' argument:
      function(place,macroName,params,wikifier,paramString,tiddler)

2) wikify() has *four* parameters:
      wikify(content,place,highlight,tiddler)
   where:
      'content' is the wiki text to be rendered
      'place' is the DOM element in which to render the output
      'highlight' is a regular expression pattern (used to highlight
search terms)
      'tiddler' is the current tiddler (i.e., the one in which the
macro is embedded)
For most simple uses of wikify(), you can omit the highlight and
tiddler parameters.  However... if the content you are rendering
includes any macros that rely upon the current tiddler context (e.g.,
the <<edit fieldname>> macro that you have embedded in the
"WorkHeader" content), then the tiddler param is NEEDED in order to
resolve the fieldname reference properly.

Thus... to fix your problem:
A) add the "tiddler" param to the handler declaration
  and
B) use wikify(text,place,null,tiddler) when rendering your macro's
output.

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 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.

Reply via email to