Transclusion using tags

35 views
Skip to first unread message

jarble

unread,
Aug 11, 2009, 6:17:24 PM8/11/09
to TiddlyWiki
Is it possible to make a tree of pages that are transcluded inside one
another based upon tagging(like the TagsTree plugin?)

-Jarble

wolfgang

unread,
Aug 14, 2009, 5:00:26 PM8/14/09
to TiddlyWiki
Hi Jarble,

I guess you would have to use custom fields for such a feature.
What do you want to accomplish with this? Maybe something else already
existing could do the same?

Regards..

jarble

unread,
Aug 16, 2009, 9:39:04 AM8/16/09
to TiddlyWiki
Yes, it's possible that an existing add-on would do the same, but I
haven't yet found one. Any further suggestions?

Michael.Tarnowski

unread,
Aug 16, 2009, 9:57:22 AM8/16/09
to TiddlyWiki
Hi Jarble,

for tag tree or similiar menu layouts there are several attempts in
the TW community; have a look at:

* [[Compilation/comparison for menu / tree / mindmap TW apps|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/613acf53828ed0f3?hl=en]]
* [[Example of a tree structure|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/b5e43fc11f57cebe?hl=en]]
* [[Hypergraph dynamic sizing|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/eccdc0b1f2f397adhl=en]]
* [[Hypergraph with current Tiddlywiki|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/34fe68b8bb32d0e6?hl=en]]
* [[Mobile Library| http://www.mobilelibrary.nl]]
* [[Tagmindmap small css change for IE|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/d635f1b8e857aa2d?hl=en]]
* [[The Brain style visualisation suite|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/0831e59b9c87189b?hl=en]]
* [[TiddlerGraphPlugin| http://groups.google.com/group/TiddlyWiki/browse_thread/thread/d4b5dd77ee87c013?hl=en]]
* [[TiddlyTagMindMap Plugin (tag visualisation) - 1|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/eea7df0d9bc32650hl=en]]
* [[TiddlyTagMindMap Plugin (tag visualisation) - 2|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/62ca1f550a7942d2?hl=en]]
* [[Tiddlytagmindmap - useing pictures as nodeheads|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/4804879a6e61cde9?hl=en]]
* [[Tree and/or list view of related tiddlers|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/a403f5aae21f6307hl=en]]
* [[Tree menu - any concluding simple plugin|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/1bceb2f5cc63e8e9?hl=en]]
* [[Treeview comments and bugs|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/6089a216035790bf?hl=en]]
* [[VismoWiki - Homepage| http://www.jonrobson.me.uk/projects/VismoWiki/index.html]]
* [[VismoWiki - TW Google groups|
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/192a00ae429921eb?hl=en]]
* [[Visualisation of TW| http://groups.google.com/group/TiddlyWiki/browse_thread/thread/c66cb15eb2d42f63hl=en]]

Have fun, cheers
Michael

wolfgang

unread,
Aug 16, 2009, 11:26:17 AM8/16/09
to TiddlyWiki
> Is it possible to make a tree of pages that are transcluded inside one
> another based upon tagging(like the TagsTree plugin?)
>

Maybe I misunderstood your question?

Wasn't it your idea to transclude, a term mean embedding the text
portion of a tiddler, based on tagging?

So, for example, when the tiddler title is 'Main', all tiddlers tagged
with 'Main' will be transcluded and their whole text displayed in the
tiddler titled 'Main'?

jarble

unread,
Aug 16, 2009, 12:22:32 PM8/16/09
to TiddlyWiki
Yes, that's what I'm looking for.

wolfgang

unread,
Aug 16, 2009, 12:59:10 PM8/16/09
to TiddlyWiki
That's why I recommended using custom fields for such a feature,
otherwise you soon might run into recursion errors.

You could use a ForEachTiddlerPlugin, as Alex did with tabs here:

http://nestedtabs.tiddlyspot.com/

Sorry, don't know how this would look like, I'm not that familiar with
FET.

If only one level of transclusion would suffice, Erics
[[EmbedTiddlers]] might offer a solution, since it embeds tiddlers by
tag:

http://www.tiddlytools.com/#EmbedTiddlers

hope that helps you further..

Eric Shulman

unread,
Aug 16, 2009, 1:03:21 PM8/16/09
to TiddlyWiki
> > > Is it possible to make a tree of pages that are transcluded inside one
> > > another based upon tagging(like the TagsTree plugin?)

> > So, for example, when the tiddler title is 'Main', all tiddlers tagged
> > with 'Main' will be transcluded and their whole text displayed in the
> > tiddler titled 'Main'?

Put this inline script [1] into a tiddler called
[[EmbedTaggedTiddlers]]:

<script>
var out=[];
var tag=story.findContainingTiddler(place).getAttribute('tiddler');
var tids=store.getTaggedTiddlers(tag);
for (var t=0; t<tids.length; t++)
out.push('<<tiddler [['+tids[t].title+']]>>');
return out.join('\n');
</script>

Then, in [[ViewTemplate]], you can write:
<div macro='tiddler EmbedTaggedTiddlers'></div>

That should do it... any tiddler that is used as a tag will now
automatically transclude content from all tiddlers that are tagged
with that title.

[1] requires http://www.TiddlyTools.com/#InlineJavascriptPlugin

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

wolfgang

unread,
Aug 16, 2009, 1:05:38 PM8/16/09
to TiddlyWiki
Goosh, completely forgot about TaggyTagging:

http://mptw.tiddlyspot.com/

Regards..
Reply all
Reply to author
Forward
0 new messages