Replies: 6 comments 10 replies
-
I don't know if I understand you. It sounds similar to: I don't see the benefit, in the first example, when you have to introduce a widget with a valor vs you create a field and then transclude it. Except to avoid some scrolling to do. |
Beta Was this translation helpful? Give feedback.
-
@twMat I've long said (to myself, if no one else) the field is the fundamental unit in TW, not the tiddler. A tiddler is a formalized/de facto grouping of fields...
Fields are global variables, unencumbered by local scope/scoping rules. Not only that, they are true variables. So yeah, $0.02 |
Beta Was this translation helpful? Give feedback.
-
Hi @twMat if I understand correctly, the idea is that certain fields of a tiddler be stored within the text body of the tiddler, instead of being defined as separate fields in the usual way. The One immediate issue is how one would store a field value such as Furthermore, we wouldn't want to have to parse the entire tiddler text every time we need to access the field. Instead, we should parse the fields only when the text of the tiddler changes. So, we'd have a function that extracts all the embedded fields, and keeps them available for when they're needed. Then, when such a field needs to be written, we'd have to parse the tiddler and scan the parse tree to find the So, the trouble is that storing fields within the tiddler body requires much more complexity than the current design. |
Beta Was this translation helpful? Give feedback.
-
@Jermolene - thanks for the detailed explanation! It certainly makes it clear why it is not a trivial matter. @CodaCodr and @AnthonyMuscio - Like you, I think it there is untapped potential in making fields more prominent in TW. |
Beta Was this translation helpful? Give feedback.
-
On field handling I have built macros of the form <<field fieldname [mode]>> which determines the current view/edit mode and presents the content of the fieldname in either a formatted view or edit mode depending on a global wiki mode, or if locally overridden. I mention it here as I think it is the more strategic approach to supporting the concepts raised in the discussion. I achieve this by having a field definition tiddler, which has a field-type, and then a number of field-type definition tiddlers eg; date, number, short-text .... each field-type provides the wikitext to display such a field-type in what ever mode is selected. And other utility modes you may define for that field. field and field-type definitions can be used to store other details like column name in lists and tables, default sort order etc... I also have an optional field called field-list which can be used to present all selected fields, in the specified order and in the specified view/edit mode. This helps with "form building". Personally I would like to see the community develop a robust support for fields and providing it as a de facto standard at least providing simpler and rapid access to the tools to handle fields, modes and forms. Regards |
Beta Was this translation helpful? Give feedback.
-
With the coming JSON store, would this idea somehow be more realistic? I.e the ability to create fields inside the text field? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Inline fields. Cool or redundant?
Directly in the wikitext, you mark out specific bits with
<$field>
tags, for example:This gives addressable variables, similar to fields, directly manipulable:
...and if the
<$field>
tags encompass larger chunks of text, it'd be comparable to transcluding subsections of tiddlers.Beta Was this translation helpful? Give feedback.
All reactions