> I was hoping to use FeT and PartTiddlerPlugin to create a dynamic
> daily aggregate tiddler. Based on it's title (say 2011.10.15) this
> tiddler would use FeT to go looking for <part 2011.10.15>...</part> in
> all tiddlers, and print the full text of what it finds.
As you point out, FeT doesn't do this, but no reason a custom script
or macro couldn't do exactly what you say: parse the text of each
tiddler with a RegExp to look for parts matching the title of the
current tiddler. I did something similar to look for checkboxes that
would represent "action items" in a particular TW.
For example, if you use InlineJavascriptPlugin, you could put a script
like this in a tiddler where you want to "aggregate" parts named the
same as the current tiddler from other tiddlers:
<script>
var re = new RegExp("<part\\s"+tiddler.title+">\\n(.+?)\\n<\\/
part>","gm");
var tids = store.getTiddlers();
for (var i = 0; i<tids.length; i++) {
var text = tids[i].text;
var getMatch = re.exec(text);
if (getMatch) { wikify(getMatch[1]+"\n",place); }
}
</script>
...or, you could make this into a macro to make it easier to put the
macro notation into any desired tiddler.
--
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.