Questions about Transclusion

82 views
Skip to first unread message

Blake Blacksmith

unread,
Nov 3, 2014, 4:09:48 PM11/3/14
to tiddl...@googlegroups.com
Is there a way to transclude tiddlers with each transcluded-tiddlers title as a header?

Can we transclude all children of a tiddler (ie: for a tag-tiddler) in one tiddler?

I appreciate any help here. I've been looking for answers to this for a few days now.

Jeremy Ruston

unread,
Nov 3, 2014, 4:25:46 PM11/3/14
to TiddlyWiki
Hi Blake

Is there a way to transclude tiddlers with each transcluded-tiddlers title as a header?

Create a tiddler called "myTemplate" containing:

! <$view field="title"/>

{{!!text}}

Then you can transclude the tiddler "HelloThere" through that template:

{{HelloThere||myTemplate}}

You can transclude a list of tiddlers in the same way. Here's transcluding all the tiddlers tagged "Concepts":

{{{ [tag[Concepts]] ||myTemplate}}
 

Can we transclude all children of a tiddler (ie: for a tag-tiddler) in one tiddler?

Do you mean all tiddlers that have a particular tag? That's in the example above.
 
I appreciate any help here. I've been looking for answers to this for a few days now.

The documentation is still an area of concern. It's very hard to learn TiddlyWiki and we need much better beginners documentation.

Best wishes

Jeremy
 

--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Blake Blacksmith

unread,
Nov 3, 2014, 10:03:19 PM11/3/14
to tiddl...@googlegroups.com
For some reason the "{{!!text}}" in 

! <$view field="title"/>
{{!!text}}

Causes a transclusion error: 
Recursive transclusion error in transclude widget

Although the function still works to transclude my tiddlers. I just wanted to let you know. I can still use the template you provided so thanks!

-Blake


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/sDehXfQpZxk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

Jeremy Ruston

unread,
Nov 4, 2014, 3:45:50 AM11/4/14
to TiddlyWiki
Hi Blake

You'll see that error if you view the template. It occurs because when the template is viewed directly, the current tiddler will be the template itself. That means that `{{!!text}}` would attempt to view the content of the tiddler recursively. Hence the warning.

But don't worry, just close the template tiddler and try the {{HelloThere||myTemplate}} part.

Best wishes

Jeremy.

Reply all
Reply to author
Forward
0 new messages