If I change the <<tiddler macro Tiddler1 (inside Tiddler3)
to <<formTiddler Tiddler1>>
then it works!!

So I am happy!!
Thanks :-)

YS Måns Mårtensson

On 23 Apr., 00:42, Måns <[email protected]> wrote:
> Thanks for answering and explaining Eric - '
> But I cannot make it work. I've tried both approaches.
> I've even tried to switch places for the tags to see if the order had
> anything to say...
> I show you my setup in three parts (1 part=1 tiddler):
> 1) The fET in a tiddler
> 2) The tiddler, which the fET should refer to/fetch info from
> 3) The tiddler in which I place the <<tiddler Tiddler1(with fET)>>
>
> 1)
> I have this fET in Tiddler1):
> <<forEachTiddler
> where
> 'tiddler.tags.containsAll([context.inTiddler.title,"NoteArkiv"])'
> sortBy 'tiddler.title'
> write
>  '(index < 100) ? "| !"+(index+1)+" |[["+tiddler.title+"]] |
> <<editTiddler [["+tiddler.title+"]]$)) | @@color
> (#cc0000):"+tiddler.text+"@@  |\n" : ""'
>         begin '"|sortable|k\n"
> +"|>| @@padding-left: 20px;[[SygeNotater]]@@@@padding-left: 20px;
> <<tiddler [[ResetSyg]] \>\>@@ |>| <<snapshot print label:print
> prompt:Udskriv id:viewer \>\> |h\n"
> +"|!#| <<tag NoteArkiv \>\> <<tag Lærere K-gruppe \>\> | <<tag
> GangOversigt Gang \>\><<tag Værelser \>\> | <<tag Syg Syge \>\><<tag
> HU Weekend \>\>  |h\n"'
>         end 'count+" sygedage\n"'
>         none '"Ingen sygedage\n"'
>
> 2) I have these tags in Tiddler2):
> NoteArkiv [[Title of Tiddler3)]]
>
> 3) I've put this macro into Tiddler3= <<tiddler Tiddler1>>
> It shows this output= Ingen sygedage
>
> Therefore I conclude that the fET is doing its job - but it doesn't
> "find" Tiddler2 ..
>
> I must have overlooked something....
>
> YS Måns Mårtensson
>
> On 22 Apr., 23:40, Eric Shulman <[email protected]> wrote:
>
>
>
> > > 'tiddler.tags.contains(context.inTiddler.title && "AnotherTag") '
>
> > the .contains(...) function takes one parameter, a text string to
> > match (in this case, a tag value), and results in a boolean (TRUE/
> > FALSE) value.
>
> > Thus, to check for more than one tag, you would write:
>
> > 'tiddler.tags.contains(context.inTiddler.title) &&
> > tiddler.tags.contains("AnotherTag")'
>
> > alternatively, you could use the .containsAll(...) function, which
> > takes an *array* of comma-separated text strings  to match
>
> > 'tiddler.tags.containsAll([context.inTiddler.title,"AnotherTag"])'
>
> > -e
--~--~---------~--~----~------------~-------~--~----~
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