Any way to include not full tiddler but only part of it.

177 views
Skip to first unread message

kvg0...@gmail.com

unread,
Oct 23, 2018, 6:42:34 AM10/23/18
to TiddlyWiki
Is there any plugin or syntax to include not tiddler but some section (e.g. by xml attr) of other(s) tiddlers?

TonyM

unread,
Oct 23, 2018, 8:17:23 AM10/23/18
to TiddlyWiki
Typicaly when we include another tiddler we are actualy talking about the text field, but you can include other fields.

It sounds like you want to extract part of the text field. In some ways data tiddlers, and the json tiddlers are not disimilar to xml. Csv files can also be used.

So what I am suggesting is you can desigh your wiki to get the equivalent of what you ask. However if you have specific text you want to access within the text field consider parsing and other tools, perhaps give us a more specific questions, tell us the alternate formats the data is available in and some examples.

Regards
Tony

@TiddlyTweeter

unread,
Oct 23, 2018, 8:40:21 AM10/23/18
to TiddlyWiki
My guess here, unless I misunderstood your post, is to better understand "transclusion". Which is to say, that IF the section (chunk of data) you want to include is PART of a tiddler then make that section a tiddler itself.

In the end I think that will be easier. The principle being to "chunk data" to the smallest unit needed. Then its more straightforward. Transclusions in TW can be complexly nested. Its one of its major features.

Best wishes
Josiah

Thomas Elmiger

unread,
Nov 2, 2018, 12:48:12 PM11/2/18
to TiddlyWiki
Here's an evil hack to extract snippets from other tiddlers ;–)

https://tid.li/tw5/hacks.html#Extract%20Macro

You would have to mark the sections somehow, e.g. using HTML comments.

Have fun!
Thomas

Jan

unread,
Nov 2, 2018, 5:09:14 PM11/2/18
to tiddl...@googlegroups.com
There is the belief in the community, that there should be no smaller
unit than a tiddeler (or a tiddler field).
To that belief the Thomas' solution is a heretic workaround...but it
works great for many jobs.

;-) Jan

Ste Wilson

unread,
Nov 3, 2018, 1:47:21 PM11/3/18
to TiddlyWiki
HERESY!!!! ;)

TonyM

unread,
Nov 3, 2018, 7:12:43 PM11/3/18
to TiddlyWiki
Data and json tiddlers already break this paradigm.

Never the less I think the rule should stand, but rules can be broken, just dont leave a mess behind.

Tony

Mohammad

unread,
Nov 3, 2018, 11:48:04 PM11/3/18
to TiddlyWiki
I grew with you John.
We should learn this, Use tiddller fired as the most smallest part and tiddller as smallest one.
It take time to get used to this concept.

Best
Mohammad

Reply all
Reply to author
Forward
0 new messages