Make a parse tree including a transclude widget or look at the wiki.makeTranscludeWidget method.
On Monday, May 10, 2021 at 2:32:03 PM UTC+2 [email protected] wrote: > in a tiddler {{fig}} works transcluded into another widget, so i guess i'm > asking : what it the widget way of performing/rendering a transclusion? > > On Sunday, 9 May 2021 at 19:24:54 UTC+1 James Anderson wrote: > >> Hello, >> >> I'm trying to render a tiddler within another tiddler via a widget. I >> have attached a basic example in which i have a widget "twsr" which will >> schedule tiddlers, that match the tags in the parent tiddler, to be shown >> in the parent for the user to grade (basically a cersion of >> https://en.wikipedia.org/wiki/SuperMemo in TW) >> >> In this case i have tiddler "study fruits" which is tagged "fruit" and >> "veg" it should pick up any other tiddlers tagged with these and show them >> in "study fruits" one by one for grading. In this example the first one it >> will show is the "figs" tiddler. >> >> I'm calling "var cnt = $tw.wiki.renderTiddler("text/html", tiddler);" in >> the twsr widget to render the tiddler. >> >> "fig" uses "Fruit Template" tiddler which is a simple tiddler containing: >> >> <$view field="title"/> >> >> If i view fig individually i see what i expect. However rendering "fig" >> via $tw.wiki.renderTiddler("text/html", tiddler); in "Study Fruits" is not >> what i expect (basically the title via the view field is missing) What is >> the correct way to do this? >> >> Thanks >> James >> >> >> >> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/acd1db7e-da1b-4da2-9bee-f90ddd4f5ba2n%40googlegroups.com.

