I have tiddlers hierarchically related to a parent tiddler through a field parent. Those tiddlers also have other content fields I will fill by opening them in edit mode.
I would like to protect the parent field from manual edition.
I also would like to distinguish such a system field from a content field. Is there naming conventions for that in TW community?
Is there a way to combine both by protecting fields having a special prefix?
Not that I am aware of and the possibilities changed in a recent release because more characters can now be used in fieldnames
I think it a fair assumption that if you created fields with the $ prefix that they would be considered system fields.
Then modify the edit template field editor not to allow you to edit fields fields with the $ prefix, but provide a special field editor for these fields.
There is no special prefix at the moment, but it is possible to create a setup, that you describe. In my examples I do use the prefix “x-” .. But you can change that to eg: “parent”.
Since there are several steps involved, it’s easy to make a typo, so I did add a JSON file here, that works with field prefilxed x-
There is a tiddler :/protected that may be renamed to $:/protected in the production version. But for easier testing I did remove the $ so the tiddler is visible
The value of the :/protected tiddler is used with the edit-text widget, which has a disabled field.
The config tiddler is visible too. Be aware that the tiddler “x-field” contains a filter, where the config-tiddler name needs a $ prefix too in production.