[Idea] Tiddler types and features - a user fields approach #6868
Replies: 3 comments 3 replies
-
I absolutely agree. The "type" field has a low level, system feel to it because the user is not entirely free to use as they please. I now think it should have been called As it was, TW5 inherited all the basic field names from TWC.
I think the only complication in that issue is choosing the best MIME type to use for filters; otherwise it's a good idea with no blockers to implementation.
Absolutely, it's a reasonable assumption for new users.
As you say, we can't change some retrospectively, but we can certainly keep to the underscore convention in future.
I always use
That sounds like a useful convention, but I'm not sure it is universal enough to be part of the core. Perhaps the question for the core is how can we support users in understanding/documenting the field names they are using.
Perhaps you could give some examples?
With the underscore convention, "user fields" are all the fields that don't start with an underscore. There are of course some "user fields" that are defined by the system (title, tags, modified, modifier etc.), but the user is still (largely) free to use them however they see fit. |
Beta Was this translation helpful? Give feedback.
-
It think that's not true. ... eg: If I have codemirror active and edit a Stylesheet, I would like to have In view mode I may like either |
Beta Was this translation helpful? Give feedback.
-
So we may change |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Indecently I think the "horse as bolted" but I have being disappointed the system uses the "type" field when in reality it would have being better as content-type or mime-type that is qualified.
An example of where this is causing complications is
New and naive users, as I was once, may be inclined to use type to describe the type of tiddler it is such as todo note bookmark filter etc...
It would help if the core set a standard for some kind of logical "tiddler type" field such as tiddler-type, so all designers and plugin developers could set custom tiddler-types and provide the handling for the type they are defining, especially now with the cascades, by setting a standard field which can only contain one value at a time, thus a tiddler can only have one tiddler type at a time, but not be confused with the existing type field.
In a similar vein we could introduce a tiddler-features-list field. Operating not unlike a type but in this case a designer developer can add a feature name to this common field, along with other features. In this case add it with list ops, for example lets say I make an "archive" plugin any tiddler with the archive feature gains an "archive button" that store tags in the archived-tags field, sets an archive date-field.
Now with the multiple possible tiddler-types or tiddler features, solutions using these fields could be designed in there settings tab to detect if the tiddler-type or feature is already in use in the wiki and provide a config option to use another if needed.
In both the cases of tiddler-type and tiddler-features-list fields we could build a cascade mechanism to support their use.
What do your think?
Beta Was this translation helpful? Give feedback.
All reactions