Hi Jeremy I've tried your proposal and different way around but I can't get anything downloaded and no error or console log. To recap the context I have a tiddler-1 which filter all the tiddler whose field:codep contains the string 63 <$list filter="[field:codep/63/(i)]"> <li> <$transclude tiddler="fieldTemplate"/> </li> </$list>
The fieldTemplate tiddler is just capturing a field from the current tiddler and display it codep:<$view field="codep"/> All of that is working What I want is to export to a file the result of the tiddler-1 (which applies the fieldTemplate on the selected tiddlers) What you proposed is <$button message="tm-download-file" param="myTemplate" class="tc-btn-big-green">Export</$button> But no file is produced. Thanks Le mardi 16 septembre 2014 14:04:03 UTC+2, Jeremy Ruston a écrit : > > Hi vpl > >> >> My last concern is, as mentioned in the first post: is their a way to >> push this result to a file. The export button export all the tiddlers. >> May I have to create a widget for exemple which could export the current >> tiddler ? >> > > <$button message="tm-download-file" param="myTemplate" > class="tc-btn-big-green">Export</$button> > > The template will be rendered with the currentTiddler variable set to the > currentTiddler in force at the site of the button. > > On the server you'd use the rendertiddler or rendertiddlers command. > > Best wishes > > Jeremy > > > >> >> Thanks for your help, >> >> Regards >> >> >> >> >> Le mardi 16 septembre 2014 08:48:08 UTC+2, vpl a écrit : >> >>> Hi, >>> >>> Using my TW5 as a database I extensively leverage the flexible tiddler >>> fields capability >>> I need to export these fields and I'm currently using the nodejs version >>> with the command line (as documented) >>> >>> I'm wondering if I could develop a macro to do that, but I'm blocking on >>> the File I/O. Is their a code sample that I could start from to develop a >>> macro that will create a file containing each tiddler fields ? >>> >>> Thanks for your help >>> >>> Regards >>> >>> Vpl >>> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/tiddlywiki. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jeremy Ruston > mailto:[email protected] <javascript:> > -- 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/d/optout.

