Hi Morris
Don't know if you can use this in your case - but it might give a
clue?:
It takes a hr-separated list of tiddler titles and renders the
tiddlers text in a table.
Use it like this: <<tiddler NameOfTiddlerWithScript with:
NameOfTiddlerWithHrSeparatedList>>
<script>
var out="";
var items=store.getTiddlerText('$1','') .split("\n----\n");
for (var i=0; i<items.length; i++) {
if (i>0 && i/5==Math.floor(i/5)) out += "|\n"; // start a new row
out += "|"+items[i]; // add item to row
}
out += "|\n"; // end last row
return out;
</script>
Regards Måns Mårtensson
On 11 Nov., 14:53, Morris Gray <[email protected]> wrote:
> I need to get the contents of several tiddlers and put the whole lot
> into another,
> This is painfully obviously wrong but perhaps you'll see the logic
> behind it,
>
> <script>
> var out="";
> var append"";
> var title="$1";
> var tids=store.getTaggedTiddlers("varinested");
> var txt=store.getTiddlerText('$1');
> for (var t=0; t<tids.length; t++)
> append+=txt[t]+"\n";
> store.saveTiddler(title,title,append);
> return out;
> </script>
>
> Can you help?
>
> Morris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---