Hi Alex The answer to your question: I'm trying to rewrite all datareferences in the fETs to use fields instead - that way i can prefill my empty TW with tiddlers, with all kinds of information via the CreateTiddlersFromCsvPlugin in one go... The Csv-option is very limited when it comes to textentries, because commas can't be included... Therefore I can't use more than one <data> entry. The tags invokes custom View- and EditTemplates for my tiddlers that have forms where I can edit the fieldvalues manually. The fieldvalues can be fetched and showed in tables via fET just as datavalues - so I don't see any reason why I shouldn't translate all datainputTemplates to fieldinputTemplates..
YS Måns Mårtensson On 20 Mar., 14:44, Alex Hough <[email protected]> wrote: > Hi Mans, > > I am wondering why you made the decision to use fields. > > I have got to a stage where I have run out of space in one of my > projects. I have been thinking about extra fields vs data > > Eric, what is your opinion? > > Alex > > 2009/3/19 Måns <[email protected]>: > > > > > > > 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 > > -- > t: 0161 442 2202 > m: 0781 372 50 17 > skype: alexhough > delicious: alexhough --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

