Thanks to this thread I solved a long standing problem for me, exporting static tiddlers that load the parent wiki. It also demonstrates how to possibly capture something like an indexer in a static tiddler.
- To test download and drop Export Static tiddlers link to parent.json
- Open the “Filter Operators” tiddler and export using the new exporter.
- Save this static tiddler anywhere, then open it in your browser
- It looks like a standard static tiddler however any link will open in the current tab the actual tiddlywiki.com tiddler/page.
If you look here Creating a custom export format you can see exporters simply make use of a “template” defined within a tiddler, eg static HTML exporter is in $:/core/templates/exporters/StaticRiver
- I revisited this and discovered what I want to do was very easy using the html
head/basetag. Here is my modified version Export Static tiddlers link to parent.json (1.3 KB) - The only change was adding
<base href={{$:/info/url/full}} target="_self">in the head section of the exporter.
- Not true @Mohammad you just need a modified or new exporter and include the Javascript.
- I believe the node version will make use of a named template as well (need to check)
Hi @rkashyap welcome. If you take a copy of the above exporter and modify it, including with javascript inside it you can do as you suggest.
- To be clear, the tiddlywiki export mechanism allows you to generate almost any kind of output including fully formed HTML pages. Static tiddlers is the only html exporter provided for tiddlywiki users.