> > > 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to