I don't know where the dollar sign $1 variable was coming from.
Perhaps you were going to use it as a template?
For this rewrite, I manually put in the name of the target tiddler to
be created. And I changed the tag to something that worked with my
data, so you'll need to change that back. If you see "processed" after
closing out your edit window, you'll know it (or something) worked.
<script>
var out="Processed";
var append=store.getTiddlerText(title);
var title="ActivityArchive";
var tids=store.getTaggedTiddlers("Activity");
for (var t=0; t<tids.length; t++)
append+=store.getTiddlerText(tids[t].title)+"\n";
store.saveTiddler(title,title,append);
return out;
</script>
Be sure that the target tiddler isn't tagged the same as the tiddlers
to be collected, or you might end up with an endless loop!
Mark
On Nov 11, 1:06 pm, Morris Gray <[email protected]> wrote:
> On Nov 12, 1:38 am, FND <[email protected]> wrote:
>
> > Just some quick syntactic observations, not sure if that's helpful:
>
> Unfortunately it isn't. I need a bit more detail than that.. Can
> anyone else add anything please?
>
> Morris
>
> On Nov 12, 1:38 am, FND <[email protected]> wrote:
>
> > Just some quick syntactic observations, not sure if that's helpful:
>
> > > var append"";
>
> > missing a "="
>
> > > for (var t=0; t<tids.length; t++)
>
> > You might wanna use braces - or at least indentation, if it's just a
> > single line - to indicate what belongs into that loop.
>
> > > append+=txt[t]+"\n";
>
> > txt is a string, you treat it as an array (which works, but is probably
> > not intended - s/txt/tids/ ?)
>
> > Also, you might wanna use the array join method instead.
>
> > > store.saveTiddler(title,title,append);
>
> > You might also wanna supply the fields
> > argument:http://trac.tiddlywiki.org/browser/Trunk/core/js/TiddlyWiki.js?rev=11...
>
> > > var title="$1";
>
> > I assume IJSP replaces that with the current tiddler title?
> > (I don't use IJSP myself.)
>
> > -- F.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---