here is a two stages exemple of remote fET :

<<tiddler AutoRefresh>><<tiddler FetTop2000TagTag with:kicks kicks>>



[[FetTop2000TagTag]]

<<forEachTiddler
    where
        'tiddler.tags.contains("$1") && tiddler.tags.contains("$2")
&& !tiddler.tags.contains("attachment")'
    sortBy
        tiddler.modified
    descending
   write
 '((index == 0) ? "|borderless|k\n" : "\n")+"|[["+tiddler.title
+"|"+tiddler.title+"]]<br$)<<tiddler [["+tiddler.title+"::Accroche]]
$))<br$)<<tiddler [["+tiddler.title+"::Referent]]$))|<<tiddler
FetThumTag3 with: [["+tiddler.title+"]]\>\>|"'
>>



[[FetThumbTag3]]

<<forEachTiddler
    where
        'tiddler.tags.contains("attachment") &&
tiddler.tags.contains("$1") && tiddler.text.contains("image") '
    sortBy
        tiddler.created
    descending
   write
        '((index <= 2) ? "[img(,5em+)["+tiddler.title+"]] " : "")'>>






On Jun 12, 2:36 pm, steve <[email protected]> wrote:
> Tobias
>
> How/where  to insert tagstring.readBracketedList($1) into a call to
> forEachTiddler, where $1 is the tagstring?
>
> <<forEachTiddler where 'tiddler.tags.contains("$1")'
> sortBy 'tiddler.title'
>
> etc.
>
>
>
> I am using a function kindly provided by Måns which uses the call to
> forEachTiddler to generate a list of tiddlers with the specified tag.
> In
> the example below case to get all tiddlers tagged with 'kicks'.
>
> <<tiddler MeMoList with: kicks>>
>
> What I would like to be able to do is generalize the function to
> return a list of tiddlers that match one or more tags. In
> the example below case to get all tiddlers tagged with 'kicks' or
> 'terms' or 'basic'.
>
> <<tiddler MeMoList with: 'kicks terms basic'>>
>
> Thanks for the help!
>
> Steve
>
> On Jun 12, 5:41 am, Tobias Beer <[email protected]> wrote:
>
> > The core function you are looking for is called readBracketedList()
> > and it turns the following string of tags...
>
> > tagstring='foo [[bar baz]] "mumble frotz gronk"';
>
> > into the following array of tags...
>
> > tags=['foo','bar baz','mumble frotz gronk'];
>
> > ...using the following syntax:
>
> > tags=tagstring.readBracketedList();
>
> > Hope that helps,
>
> > Cheers, Tobias.

-- 
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