Hello, I am new to using TiddlyWiki but found that it suited my needs quite well - a static wiki that can be easily hosted and edited without too much fuss. I want to use it as a source of information for my friends to read about.
However I did have a question about the ability to generate tiddlers automatically from an external file. After some searching, I did not find a conclusively popular (or indeed widespread) method of doing so. Is there a way to cleverly use tm-new-tiddler to accomplish this goal? Or is it perhaps possible to unpack a tiddlywiki file, write a [language] script that does what I want, then pack it back up?
Wait, I have found a post in the Tips and Tricks forum that seems to do what I need. I just used the wrong keywords, it seems. This forum is truly a repository of wisdom.
Of course. So, here’s the way I solved my problem.
I read this topic:
And realized that you could import jsons natively to TW simply by dragging them in, and if the formatting was correct, then individual tiddlers would be automatically generated per object.
After creating and exporting an experimental tiddler, I found out that the exported tiddler had a number of typical properties (e.g. “created”, “modified”, “type”, “custom-property-1”, etc.)… and when I fiddled with the json and removed them one by one, I noticed that the only crucial property for a json object to be recognized as a tiddler is the “title” property.
So, I ended up solving the problem by writing a python script to reformat the json files I already had from another source. Easy as py.