Hi

I have started to use fields instead of <data> in my tiddlers and now
I must translate all my fET-tables - so they fetch fieldvalues instead
of datavalues.

I want to convert/translate all my datareferences to fieldreferences.
I don't know the right syntax -

Is it just a matter of writing tiddler.field("fieldname") instead of
tiddler.data("dataname") ?? and in the write-area translate: ex: <<tag
"+tiddler.data("dataname")+" \>\> to :  <<tag "+tiddler.field
("fieldname")+" \>\> ???

Here's an example of my code for a table with pictures, toggletags, a
few fields and some data - If someone would have a go - in translating
the datareferences to fields - they are very welcome:

<<forEachTiddler where 'tiddler.tags.contains("Student") &&
tiddler.data("lives")&& tiddler.data("teacher") && tiddler.data
("teacher").contains(context.viewerTiddler.title)'
sortBy 'tiddler.data("teacher")'
write
 '(index < 10)? "|"+(index+1)+"|[["+tiddler.title+"]] | <<tag
"+tiddler.data("lives")+" \>\> | [["+tiddler.data("class") +"]] |
<<toggleTag Here [["+tiddler.title+"]] nolabel \>\> |  <<toggleTag
Sickleave [["+tiddler.title+"]] nolabel \>\> |[img(55%,auto)
["+store.getValue(tiddler,"title")+"|"+store.getValue
(tiddler,"billede")+"]] |\n" : ""'
              begin '"|sortable|k\n"
+"|>|>|>|!<<wikify %0 studentn...@here \>\> | <<tiddler HereUpdate\>\>
| <<tiddler SickleaveUpdate\>\> | |h\n"
+"|!#| <<wikify [img(55%,auto)[%1|%0]] im...@here teachern...@here \>
\> |<<tag allLives lives \>\>|<<tag class \>\>|![[Here]]|!
[[Sickleave]]||h\n"'
end 'count+" students\n"' none '"no students\n"'>>

YS Måns Mårtensson
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to