[TWC] Include tiddlers based on text filter

67 views
Skip to first unread message

julien23

unread,
Sep 28, 2015, 9:21:07 AM9/28/15
to TiddlyWiki
Hi all

I use
http://yakovl.bplaced.net/TW/STP/STP.html#SharedTiddlersPlugin
to include data from remote projetcs

I would like to Include tiddlers based on text filter, but I can't find the right syntax
<<include "./projects/myProject.html" filters:"[text[MyText]]">>

Can you please help me ?

Regards

JBo


tw14/index.html

Eric Shulman

unread,
Sep 28, 2015, 10:59:25 AM9/28/15
to TiddlyWiki
On Monday, September 28, 2015 at 6:21:07 AM UTC-7, julien23 wrote:
I use
http://yakovl.bplaced.net/TW/STP/STP.html#SharedTiddlersPlugin
to include data from remote projetcs

I would like to Include tiddlers based on text filter, but I can't find the right syntax
<<include "./projects/myProject.html" filters:"[text[MyText]]">>

Can you please help me ?

TiddlyWiki Classic filters are very limited.  Unfortunately, there is no [text[...]] operator.  The only operators that are supported (by the TWC core) are [tag[...]] and [sort[...]].

-e

julien23

unread,
Oct 12, 2015, 3:27:06 AM10/12/15
to TiddlyWiki
Hi

Ok another reason why I should move to TW5 ... no time for it right now.

Another question :

I removed the MyText filter to include the whole TW.

How can I display a list of Tiddler with the MyText in there textContent ?

FET don't seems to fetch included tiddlers :

<<tiddler AutoRefresh>><<tiddler FetTodoText with: MyText>>

With [[FetTodoText]] :

<<forEachTiddler
    where
        'tiddler.text.contains("$1")'
    sortBy
        tiddler.modified
        descending
   write
 '((index == 0) ? "|!|!Todo|!Next|\n" : "\n")+"|[["+tiddler.title+"|"+tiddler.title+"]]|<<tiddler [["+tiddler.title+"##Todo]]$))|<
<tiddler [["+tiddler.title+"##Next]]$))|"'
>
>

Thank you

JBo
Reply all
Reply to author
Forward
0 new messages