Creating a new TiddlyWiki from tiddler files (under Node.js)

Hi everyone,

I am exploring the possiblity to use TiddlyWiki as a publishing platform for text that I have in other formats. The idea is to convert everything to .tid files, and then import them into a fresh TiddlyWiki hosted on a personal server. Sounds easy.

But… I haven’t figured out how to do it yet. I have two commands that do a part of the job, but I can’t use them together:

  • tiddlywiki MyWiki --init server creates a working Wiki on the server, but it is empty.
  • tiddlywiki --load empty.html --load tiddler-directory --savewikifolder ./MyWiki creates a Wiki with all my tiddlers, but it’s not functional because it lacks the server component.

I can’t seem to do “init, then load”, the “load” is ignored. Nor get the server functionality without --init. Nor use “load” and then save the loaded tiddlers to an existing Wiki folder.

I am probably overlooking something very basic - but what is it?

If your wiki has the server plugins installed, then this should work:

One of the functions of the server plugins is to sync changes back to disc, so the --savewikifolder command is not needed.

Thanks a lot! That does work indeed.

Just a related tip, From a non server command, or browser via interaction, including in single file wikis the <$browse multiple/> allows to to select multiple files and import into tiddlers. It is then possibly to treat these new tiddlers as you wish.

That’s a nice feature indeed! But it’s for a different use case. Mine is producing a TiddlyWiki automatically, as the output of a publishing chain. Running on a headless server. So anything interactive in a browser is not an option.

1 Like