Hi Dave
Eric Shulman (TiddlyTools) wrote this in a thread:
http://groups.google.dk/group/tiddlywiki/browse_thread/thread/639bdc9456722aa2/e23c57e67990d9dc?hl=da&lnk=gst&q=all+tiddlers+with+a+slice#e23c57e67990d9dc
"...
Then, you can use that tag value to 'filter' the list of tiddlers to
be retrieved, so that only those with the desired slices and/or
sections are processed.
For example, here's an inline script that gathers up information
about
'bookmark' tiddlers, and outputs a summary, formatted as an "HR-
separated list"
<script>
var out=[];
var tids=store.getTaggedTiddlers("bookmark");
for (var i=0; i<tids.length; i++) {
var t=tids[i].title;
var d=store.getTiddlerText(t+"::Description");
var u=store.getTiddlerText(t+"::URL")
out.push("[[%0]] - %1\n%2".format([t,d,u]));
}
return out.join("\n----\n");
</script>
"
regards Måns Mårtensson
On 4 Jan., 00:33, Dave Parker <[email protected]> wrote:
> Hello,
>
> I have this fET that works:
>
> <<forEachTiddler
> where
> ' tiddler.tags.contains("todo") &&
> ! tiddler.tags.contains("systemConfig") &&
> ! tiddler.tags.contains("hide") '
> write
> '"| [["+tiddler.title+"]] |<<tiddler [["+tiddler.title+"::todo]]\>\>
> |\n"'
>
>
>
> but I'd like to not have to tag the tiddler with "todo" to get the
> tiddler to show up in the fET. If I don't use the tag, i get way too
> many tiddlers with just a blank "todo slice".
>
> I tried
>
> !store.getTiddlerSlice(tiddler.title, "todo") == "" &&
>
> to try to exclude blank or non existent slices, but got an error,
> so I guess my question is
>
> How do you exclude blank slices without referring to tags?
>
> Dave P
--
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.