Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XFieldsPlugin notes & ideas #11

Open
tobibeer opened this issue Mar 9, 2013 · 0 comments
Open

XFieldsPlugin notes & ideas #11

tobibeer opened this issue Mar 9, 2013 · 0 comments

Comments

@tobibeer
Copy link
Owner

tobibeer commented Mar 9, 2013

Important

So far, xfields is nothing but a concept...

Discussion

Spaces

Templating

http://groups.google.com/group/tiddlywiki/browse_frm/thread/c76a948aaaeb5b87#

For the future I would suggest you use fields for any property>value pairs and some concept which conditionally displays fields ...depending on a tiddlers tags. I would think it were great to have something like some CustomFields tiddler which contained sections of definitions like this:

!Tags
tagA: fieldA fieldB fieldC
tagB: fieldA fieldD
tagC: fieldC
!Fields
fieldA: text|label for field A
fieldB: memo|label for field B
fieldC: text|label for field C
fieldD: date|label for field D

...and then whenever a tiddler of any of the tags is being displayed, there would be a corresponding ViewTemplate Element for rendering the data as well as the appropriate input element(s) for entering any new or changed data. If a tiddler had more than one of these tags, of course, the collection of all applicable fields would be displayed. I think something like that would utterly boost TiddlyWiki's usability for data management.

Accessing xFields

https://groups.google.com/d/msg/tiddlywiki/Ul0eC6lD3oo/Q6EEAzJSlIsJ
Other than suggested above, it probably is a good idea to write xfields as JSON format an provide unified read / write methods. A simple indicator of an xfield may be the x. namespace, e.g. x.my.x.field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant