I dont know if it yet exists but i would like to know if it is possible tocreate (or fill existing) fields within a tiddler.
This is my text i write in the tiddler about subject so and so@fieldname:value (for instance: @due-date:20210912 and that field due-date is createdor filled with value 20210912)If possible more than 1 field in a tiddler.
@fieldname:value (for instance: @due-date:20210912 and that field due-date is created
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/245c3f25-dce0-4c97-bb70-b2548ddc271en%40googlegroups.com.
But then I would sometimes qualify, responding to users, with a "but it's going to cost ya."With a soupçon of (i.e. a whiff) "just because we can do it doesn't mean we should."
I'm thinking some javascript would be necessary. Javascript and I do not along get.
I do have thoughts about doing this via pure/pristine TiddlyWiki magic.
- One would involve a "process this tiddler's content" button to parse through the entire content of the tiddler's text and then turn into fields whatever looks like fields. So not at all on the fly.
- The other would wrapping every field with a transclusion (using your example: {{value@fieldname||MakeField}} ), which would plop a button right there for you to press on (after save of a tiddler) which would create the field in the tiddler and put the value in the field. From that point on, the transclusion would display the value from the field instead of a button. Again, not on the fly.
- A macro could be used instead, but it would be the same result, so just a matter of personal preference re transclusion versus macro (I always go transclusion unless there is a technical benefit to go macro instead)
Just like putting [[This New Tiddler]] in the text of some tiddler does not automatically create that non-existent "This New Tiddler" until one manually clicks on the link (i.e. manual intervention required to actually create the tiddler), the same goes with fields: manual intervention required.
That seems like a smart thing to me security-wise.
If full auto-creation of tiddlers and fields could happen, then imagine some malicious code madly auto-creating tiddlers and fields in a TiddlyWiki to the point of effectively causing a "denial of service" attack, totally locking/killing your TiddlyWiki.
With javascript, I'm betting it could be done. But I'm thinking it might not be such a good idea.
But what if a user wants to have a nice GUI dialogue as done in Projectify [1]. The GUI may change the due-date from the view-mode.
