Hi Tobias

I know the way I have done it may seem a little counter-intuitiv. The
reason I cant do it the other way around is that in the larger TW
where I am trying to implement the solution I only "know" each
tiddler's parent tiddler(s) and I can't think of an easy way to
reverse this (ei I don't what to sort through all tiddlers to make
sure I've caught all of a tiddler's childeren)

Allthough you could probably do what you are suggesting using the code
below. The lack of numbering is however kind of a dealbreaker because
I need the trees created to be very precise as to what tiddler is own
by what.

----
/%
!out
$1
!end
%/<<tiddler ShowList##out with: {{
var out=[];
var target="$1";
var tids=store.getTiddlers();
for (var i=0;i<tids.length;i++) {
   var a=tids[i].fields.field;
   var b=tids[i].fields.field2;

   if (a&& a.contains(target))
         out.push("#[["+tids[i].title+"]]");
   if (b && b.contains(target))
         out.push("#[["+tids[i].title+"]]");
}

out.join("\n");}}>>
---

I hope this made sense. As I am writing this it is kind of late in
Denmark.

regards
-- 
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