Load content or make a list of Tiddlers based on criteria

82 views
Skip to first unread message

Vincent vd B

unread,
Apr 14, 2019, 4:11:57 AM4/14/19
to TiddlyWiki
Hey,
I want to do the following:

----
{{Load content of Tiddlers}} in Tiddler with:
Tag: 123 
and 456 in Tiddler title 
----
Or:
[[Show list of tiddlers]] with:
Tag: 123 
and 456 in Tiddler text
----

How can I do that?
Thank you,

Jan

unread,
Apr 14, 2019, 5:22:25 AM4/14/19
to tiddl...@googlegroups.com
Hey Vincent,
this should work:
<<list-links "[tag[123]search:title[456]]">>

Best wishes Jan
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e8c747a4-940d-48da-990b-414d26393339%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

S. S.

unread,
Apr 14, 2019, 5:45:58 AM4/14/19
to TiddlyWiki
For the first part of the question, it is a little confusing for me to understand what you want.

This should work to see the text of your tiddler tagged 123 with a title that contains 456 - in a tiddler that has the below code:

<$list filter="[tag[123]search:title[456]]">

<$view field="text"/>
</$list>

And this should load the text of tiddler [[Load content of Tiddlers]] into a tiddler with the below code, if it has tag 123 and title containing 456 :

<$list filter="[all[current]tag[123]search:title[456]]">

<$view tiddler="Load content of Tiddlers" field="text"/>
</$list>

Hope one if them is what you wanted!

Vincent vd B

unread,
Apr 14, 2019, 6:06:50 AM4/14/19
to TiddlyWiki
Yes, this generates a list of Tiddlers based on criteria: Tag: 123 with text 456 in the title.

Do you also know a way to {{import content}} of all tiddlers with 
Tag: 123 with 456 in the text field?

Thanks for your quick reply

Op zondag 14 april 2019 11:45:58 UTC+2 schreef S. S.:

Vincent vd B

unread,
Apr 14, 2019, 6:08:14 AM4/14/19
to TiddlyWiki

Vincent vd B

unread,
Apr 14, 2019, 6:13:52 AM4/14/19
to TiddlyWiki
<<list-links "[tag[123]search:title[456]]">>

Yes, this generates a list of Tiddlers based on criteria: Tag: 123 with text 456 in the title.

Do you also know a way to {{import content}} of all tiddlers with 
Tag: 123 with 456 in the text field?

Thanks for your quick reply

Op zondag 14 april 2019 11:22:25 UTC+2 schreef Jan:
Hey Vincent,
this should work:
<<list-links "[tag[123]search:title[456]]">>

Best wishes Jan

Am 14.04.2019 um 10:11 schrieb Vincent vd B:
Hey,
I want to do the following:

----
{{Load content of Tiddlers}} in Tiddler with:
Tag: 123 
and 456 in Tiddler title 
----
Or:
[[Show list of tiddlers]] with:
Tag: 123 
and 456 in Tiddler text
----

How can I do that?
Thank you,
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.

Vincent vd B

unread,
Apr 14, 2019, 6:18:47 AM4/14/19
to TiddlyWiki
Sorry S.S., that's not exactly what I meant. 
I think the biggest challenge for me is to clearly describe what I mean. 
Thanks for your reply


Op zondag 14 april 2019 11:45:58 UTC+2 schreef S. S.:
For the first part of the question, it is a little confusing for me to understand what you want.

Vincent vd B

unread,
Apr 14, 2019, 6:47:10 AM4/14/19
to TiddlyWiki
I have found out that:
This will load a list of tiddlers with:
Tag: 123
Text: 456

<<list-links "[tag[123]search:text[456]]">>

Do you know a way to {{import}} the tiddlers based on above criteria?


Op zondag 14 april 2019 12:18:47 UTC+2 schreef Vincent vd B:

Jan

unread,
Apr 14, 2019, 6:52:20 AM4/14/19
to tiddl...@googlegroups.com
Hi Vincent,
the word you search for this {{}} is "transclude" .

Try

<$list filter="[tag[123]search:text[456]]">

!<$view field="title"/>
<$view field="text"/>
</$list>
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Vincent vd B

unread,
Apr 14, 2019, 7:11:17 AM4/14/19
to tiddl...@googlegroups.com
Thank you Jan,

I use the Shiraz plug-in. Which uses the "details" macro?
(A bar in the page that you can click on so that it extends and shows the content.)
I had hoped to see a series of bars in the tiddler that I could click on.

This is the code:
<<details sum:"primary" "This is a test!" class:"alert-primary">>

The piece of code you gave me works but does not properly display the contents of the tiddlers.
How can I ensure that the content is displayed correctly?


Op zondag 14 april 2019 12:52:20 UTC+2 schreef Jan:
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages