Yet another one - this one evaluating a fieldvalue
<<forEachTiddler where 'tiddler.tags.contains("X") && tiddler.fields
["y"]&& tiddler.fields["z"] && tiddler.fields["z"].contains(q)'
sortBy 'tiddler.title'
write
'(index < 200)? "|!"+(index+1)+" <<toggleTag R [["+tiddler.title+"]]
- \>\>| <<tag "+tiddler.fields["y"]+" \>\> | <<tag "+tiddler.fields
["a"] +" \>\> | [img(3em,auto)["+store.getValue(tiddler,"title")
+"|"+store.getValue(tiddler,"image")+"]["+tiddler.title+"]] |
[["+tiddler.title+"]]|\n" : ""'
begin '"|sortable|k\n"
+"|<<tiddler B\>\>|>|>|>| !<<tag X [[C]] \>\> <<tag Z y \>\> |h\n"
+"|[[D]]| <<tag Y-label Y \>\> | <<tag E-label E \>\> || |h\n"'
end 'count+"Qs\n"' none '"No Qs\n"'>>
Don't know if this helps at all - as Alex put it: "The easy way to
resolve this though help from the group would be to post a 'minimal
test case"..
It's easier to help when you have an example...
Regards Måns Mårtensson
On 19 Nov., 12:56, Måns <[email protected]> wrote:
> Here's another fET fetching datafields as well
>
> <<forEachTiddler where 'tiddler.tags.contains("Books")'
> sortBy 'tiddler.fields["title"]'
> write
> '(index < 200)? "|"+(index+1)+"|[["+tiddler.title+"]] |
> [["+tiddler.data("author")+"]] | [["+tiddler.data("primtopic")+"]] |
> [img(3em+,)["+store.getValue(tiddler,"title")+" |"+store.getValue
> (tiddler,"image")+"]["+tiddler.title+"]] | [["+tiddler.title+"-note]]
> | [["+tiddler.data("wherekept")+"]] |\n" : ""'
> begin '"|sortable|k\n"
> +"|>|>|>|>|>|>| !<<wikify [[%0]] ti...@here \>\> |h\n"
> +"| # | Titel | [[Author|by author]] | [[Theme|by theme]] | Cover |
> Note | <<tag Books \>\> |h\n"'
> end 'count+" books\n"' none '"no books \n"'>>
>
> I'm afraid I haven't got any fETs using criterias based upon
> datavalues in the "where-call" - I will look a little further..
>
> Regards Måns Mårtensson
>
> On 19 Nov., 12:50, Måns <[email protected]> wrote:
>
>
>
> > Hi Allan
>
> > You probably know that you have to specify a tag to make fETs work...
> > This is one of my fETs collecting emailaddresses from different
> > tiddlers.
>
> > I'm not sure if you are asking how to use "real fields" - as I do in
> > this example - or if you want to fetch data-fields...
> > I know I've got a fET (somewhere) fetching datafields as well...
>
> > <<forEachTiddler where 'tiddler.tags.contains("entry") &&
> > tiddler.fields["email"]'
> > sortBy 'tiddler.title.toUpperCase()'
> > write
> > '(index < 200)? "|!"+(index+1)+"|[["+tiddler.fields["name"]
> > +"|"+tiddler.title +"]]| [["+tiddler.title +"]] |[["+tiddler.fields
> > ["email"]+"|mailto:"+tiddler.fields["email"]+"]] |\n" : ""'
> > begin '"|sortable|k\n"
> > +"|>|>|>|>|>| !Send mails |h\n"
> > +"|!| !Name | !ITiddlertitle | !Email |h\n"'
> > end 'count+" e-mailadresses \n"' none '"no emailaddresses \n"'>>
>
> > Regards 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=.