Folks,
Background
Storing info related to a tiddler outside the tiddler
There are a number of ways to store additional information for a tiddler outside a tiddler, for example in a tiddler with a prefix to the current tiddler name `$:/data/tiddlername,
Storing info related to a tiddler inside the tiddler
Using the text field
Of course text fields in a tiddler could store a lot of information but tiddlers can get too long, and we tend not to mix to many different data structures.
Using fields
We can also store a lot of additional info in additional fields within a tiddler, filename1 fieldname2 etc⌠including using list fields.
- just as for tags this can overuse the fieldnames and âpollute the fieldnamesâ with too many names, just as having too many tags can.
- It is possible to create âadditionalâ multiline text fields inside a tiddler if needed.
forground
Using a field to store data, an indexed data, JSON or data dictionary?
I would like to create an extra field when needed on a tiddler, however I would like it to store indexed data like for a data dictionary or JSON tiddler.
- In this case I would need to provide the tiddlername (or current) a fieldname AND in index.
- Typically data is only stored in tiddlers text fields with a type set, which are effectively âmime typesâ, but we cant assign a âmime typeâ for a field.
- The current filters and widgets do not seem to allow both fieldname and index to be used, they default to the text field.
This last option is a gap in the functionality available to us in tiddlywiki, that is to use other than the text field as a data store. If it were possible we could;
- Make larger self contained tiddlers, simplifying transfer to other wikis with drag and drop
- Be able to delete a tiddler and have additional data within the tiddler be deleted as well.
- Export a tiddler in a way that a history or log relating to that tiddler, is exported with it, because it is just another field.
- Use the text field to document the data stored within its additional fields.
- store data with a full qualification of tiddler/fieldname/index and allow one or all such values to be swapped for example but changing the tiddlername but using the same fieldname/index we could âswitch datasetsâ.
The question?
Can anyone see a way to introduce or extend tiddlywiki to allow for data to be stored and retrieved from fields other than the text field, ideally using the existing tools or at least an easy to use workaround to enable this?