Tiddler descriptions

33 views
Skip to first unread message

whatever

unread,
Feb 15, 2011, 3:07:18 AM2/15/11
to TiddlyWiki
Hi!

Does someone know of a way to add a tiddler description to a tiddler
other than using hidden sections/slices/parts? I thought about using
fields, but they don't support tiddlywiki markup. I also considered
annotations, which support markup and have the advantage that you can
display them using the annotations macro, but I don't know how to call
them up in text or using fET.

Any ideas?
w

Tobias Beer

unread,
Feb 15, 2011, 6:01:05 AM2/15/11
to TiddlyWiki
As far as I know, it's not that tiddler fields do not support Tiddler
Markup. Instead what might be the missing link is a way to edit the
field value in a textarea and view the contents wikified.

Actually I was thinking of creating an utterly useful plugin, maybe
called CustomFieldsPlugin, which would allow the following:

A CustomFieldsConfig in which you can define:
fieldname->fieldtype|label
children->boolean|has child
descr->wiki|some wikified description content
note->memo|some simple, yet multiline content

Then a generic placeholder in the View- and EditTemplates which would
display the corresponding edit or view elements according to certain
rules, the simplest of which would be something like a tags section in
the CustomFieldsConfig tiddler, e.g.:

!Tags
house->inhabitants,area,type,garden
car->color,mileage,highspeed

...thus relating certain tagged tiddlers with the previously defined
"generic" fields. The same could be implemented for tiddlers that have
a certain field (or field<>value pair) rather than some (visible) tag.

This idea seems to provide a highly generic and customizable solution
to for a large number of possible implementations, all going in the
direction of a more fine-grained, accessible tiddler-data-management.

Looks like, I'll possibly start creating a first prototype this
evening as this idea has been bugging me ever since it first came to
mind.

Cheers, Tobias.

Eric Shulman

unread,
Feb 15, 2011, 6:31:13 AM2/15/11
to TiddlyWiki
> As far as I know, it's not that tiddler fields do not support Tiddler
> Markup. Instead what might be the missing link is a way to edit the
> field value in a textarea and view the contents wikified.

To create a custom field *textarea* input in EditTemplate:
<span class='editor' macro='edit fieldname 10'></span>
To render (wikify) a custom field value in ViewTemplate:
<span macro='view fieldname wikified'></span>

I've actually done some experimental work with *dynamically*
generating EditTemplate/ViewTemplate definitions on-the-fly, based on
values from tiddlers with matching tags. For example, a custom
[[CourseEditTemplate]] that generates a set of fields for each student
enrolled in a given class, based on values from tiddlers tagged with
both "student" AND the corresponding course number. Similarly, a
custom [[CourseViewTemplate]] is used to render the student info in a
richly-formatted display.

Note: the above technique uses
http://www.TiddlyTools.com/#TaggedTemplateTweak
and
http://www.TiddlyTools.com/#EditFieldPlugin

enjoy,
-e

whatever

unread,
Feb 15, 2011, 9:19:38 AM2/15/11
to TiddlyWiki
Yeah, it was the "wikified" part that I missed. Anyway, is there a
<<view fieldname@TiddlerName wikified>> syntax like the
EditFieldPlugin provides for the "edit" command or do I need to use
the WikifyPlugin? I noticed that currently, as soon as I add
@TiddlerName, nothing is displayed.
w

whatever

unread,
Feb 15, 2011, 9:23:44 AM2/15/11
to TiddlyWiki
Yeah, it was the "wikified" part that I missed. Anyway, is there a
<<view fieldname@TiddlerTitle wikified>> syntax, like EditFieldPlugin
provides for the "edit" command, or do I need to use the WikifyPlugin?

w

PS: Sorry if this appears multiple times my browser refused to post.


On 15 feb., 12:31, Eric Shulman <elsdes...@gmail.com> wrote:

Måns

unread,
Feb 15, 2011, 12:27:41 PM2/15/11
to tiddl...@googlegroups.com
Hi Eric 
I've actually done some experimental work with *dynamically*
generating EditTemplate/ViewTemplate definitions on-the-fly, based on
values from tiddlers with matching tags.  For example, a custom
[[CourseEditTemplate]] that generates a set of fields for each student
enrolled in a given class, based on values from tiddlers tagged with
both "student" AND the corresponding course number.  Similarly, a
custom [[CourseViewTemplate]] is used to render the student info in a
richly-formatted display.

Is this what Shavinder uses in his Class Records?  http://classrecords.tiddlyspot.com/

I'm trying to make my own version of it - however I'm a little confused by the autogenerated shadowtiddlers, and I need to find a "fET-way" to be able to customize wikification of custom fieldname - replacing the generic use of TiddlerName, in a lot of places.... Reason is that I use IDs for student's Tiddler names however I want to display their real names in different statistics... 
For example I would like to show a students "real name" in the autogenerated attendance table.... I can't get my head around the http://classrecords.tiddlyspot.com/#CustomAttendanceTemplate - maybe its the "SID-thing" I need to exchange for a custom field?? 

My (very unfinished) adaption of Shavinder's Class Records: http://klasser.tiddlyspace.com/

Cheers Måns Mårtensson
Reply all
Reply to author
Forward
0 new messages