Thank you Jeremy, I'll have a go...
Alex On 31 August 2014 10:06, Jeremy Ruston <[email protected]> wrote: > Hi Alex > > My planned use case is to generate static HTML file which would then be a >> stripped down version of my Tiddling for public view. >> >> How would I export only default tiddlers >> > > There's an example at tiddlywiki.com/static.html which is a static view > of the default tiddlers on tiddlywiki.com. It is generated by this > command: > > --rendertiddler $:/core/templates/static.template.html static.html > text/plain > > or a list of Tiddlers? >> > > If you want an arbitrary list of tiddlers baked into a single file then > you'd need to create a template. > > For example, "mytemplate" could contain: > > <$set name="tv-config-toolbar-icons" value="no"> > > <$set name="tv-config-toolbar-text" value="no"> > > <$set name="tv-config-toolbar-class" value="tc-btn-invisible"> > > <$set name="currentTiddler" value={{$:/language}}> > > <$set name="languageTitle" value={{!!name}}> > > <$set name="currentTiddler" value=""> > > <$list filter="tiddlerone tiddlertwo [tag[mytag]]" > template="$:/core/ui/ViewTemplate"/> > > </$set> > > </$set> > > </$set> > > </$set> > > </$set> > > </$set> > > Change the <$list> filter in order to select which tiddlers are included. > > Then use this command to save the file: > > --rendertiddler mytemplate mystatic.html text/plain > > Or you can create a button to save the file in the browser: > > <$button message="tm-download-file" param="mytemplate" > class="tc-btn-big-green">Download</$button> > > Best wishes > > Jeremy > > >> Maybe it's not the best approach. Copying the .tid files over then >> generating a static from them might be easier? >> > > > > >> >> >> Alex >> >> >> On 31 August 2014 06:48, CB <[email protected]> wrote: >> >>> Hi Jeremy, >>> >>> Is there a way to control the filename of the target file to be saved? >>> As of now it prompts to save the output file with the same name as tiddly >>> wiki. >>> >>> Thanks >>> CB >>> >>> >>> On Wednesday, March 26, 2014 8:21:22 AM UTC-7, Jeremy Ruston wrote: >>> >>>> Hi Scott >>>> >>>> There's an example of how to save content in static HTML buried in the >>>> control panel: in the "tools" tab there's a big green button to "Download >>>> all tiddlers as static HTML". Clicking it should download a static HTML >>>> file containing all the non-system tiddlers concatenated together in >>>> alphabetical order. >>>> >>>> The code that creates the button is in "$:/core/ui/ControlPanel/Tools": >>>> >>>> <$button message="tw-download-file" >>>> param="$:/core/templates/alltiddlers.template.html" >>>> class="btn-big-green"><<lingo Export/AllAsStaticHTML/Caption>> >>>> {{$:/core/images/save-button}}</$button> >>>> >>>> In order to change the tiddlers that are included, and control their >>>> ordering, you can overwrite the filter in "$:/core/templates/ >>>> alltiddlers.content": >>>> >>>> {{{ [!is[system]sort[title]] ||$:/core/templates/static-tiddler}}} >>>> >>>> Best wishes >>>> >>>> Jeremy >>>> >>>> >>>> >>>> >>>> On Wed, Mar 26, 2014 at 2:39 PM, Scott Hatcher <[email protected]> >>>> wrote: >>>> >>>>> Hello, >>>>> >>>>> I feel as though I'm nearly there, but also way off. There are similar >>>>> questions on this group about doing the same thing (generating a static >>>>> HTML document from all tiddlers, and then importing it into Word), but >>>>> they >>>>> haven't gotten me very far. >>>>> >>>>> My situation is the same as most. A large TW written for a boss that >>>>> wants a Word document. I'm going to keep both, and explain that one will >>>>> be >>>>> updated and the other be static. He'll just be happy once he sees a word >>>>> doc exists. >>>>> >>>>> the --render.allcontent shadow tiddler seems to be my answer, but I've >>>>> also looked into plugins. I'm running a single stand-along .html document >>>>> TW, and so there's no "plugins" folder. I'm completely confused. >>>>> >>>>> What's the easiest way to generate a static HTML from the browser >>>>> (save as?). >>>>> >>>>> Thanks, >>>>> Scott >>>>> >>>>> -- >>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> Jeremy Ruston >>>> mailto:[email protected] >>>> >>> -- >>> 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. >>> >> >> -- >> 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. >> > > > > -- > Jeremy Ruston > mailto:[email protected] > > -- > 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. > -- 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.

