Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support injecting a shadow tiddlers for json store TiddlyWiki #341

Open
simonbaird opened this issue Aug 5, 2024 · 0 comments
Open

Support injecting a shadow tiddlers for json store TiddlyWiki #341

simonbaird opened this issue Aug 5, 2024 · 0 comments

Comments

@simonbaird
Copy link
Collaborator

From TiddlyWiki/TiddlyWiki5#8441 (comment) 👍

In TiddlyWiki Classic shadow tiddlers were stored in a single hashmap. In TiddlyWiki 5 shadows are automatically created at startup from the tiddlers within the loaded plugins.

So, the approach for TW5 would be to pack your tiddlers into a plugin, and then inject that. You'd be injecting a single tiddler with the usual plugin fields, with its content being a JSON hashmap of the constituent tiddlers.

The info mechanism in the core works similarly by dynamically creating a plugin at startup on the browser side. It uses the title $:/temp/info-plugin for the plugin. It may make sense for you to use $:/temp/tiddlyhost if you wanted to avoid the plugin being saved back to the server.

I think it would be nice to use a shadow tiddler for $:/SitePreviewImageUrl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant