> As for your macro, for most cases I would go down a different > road ...in that I would construct an output string (containing wiki > markup) in the macro code which at the very end of the macro I would > inject using the wikify function, like: > > out="!My Heading\n"; > out+="Here's My List...\n"; > for(i=1;i<10;i++) out+="*Item"+i+"\n"; > wikify(out,place); > > Tobias.
Terrific advice. I am now able to call tabs macro from another macro, which I believe is a generic way to produce more customised tabs. Also your approach suddenly makes me realise that, fundamentally, writting wiki macro is of no difference to writting PHP or JSP code. In all cases, the main body is the text (wiki, html) with pre-defined syntax, and the add-ons are operations (macro, JSP statements) that prepare the key bits of text. To share, here is the working code I used: var out = '!Display Tabs \n'; out += "<<tabs txtMoreTab \"job no\" \"job no\" wikiinthefield_job_job001_jobNo \"customer address\" \"customer address \" wikiinthefield_job_job001_customerAddress \"customer phone\" \"customer phone\" wikiinthefield_job_job001_customerPhone>>"; wikify(out, place); Yang -- 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.

