On Tuesday, May 27, 2014 2:29:09 AM UTC-7, Jan wrote:
>
> Wow, what a change a little ' can do...
> The script works fine now allso when it is called in the Template.
> One last wish: Is there a way to supress the reportline for the tiddlers
> where the field important is undefined?
>
The following script will produce the same output as before, but will skip
any tiddlers that do not have the "important" field defined... and, if no
tiddlers have that field, then the entire output is skipped.
<script>
var pre="@@font-size:2em;[img(30px,)[Tag.png]] Denken an:\n";
var post="@@";
var out="";
var tids=store.getTiddler("$1").getLinks();
for (var i=0; i<tids.length; i++) {
var val=store.getValue(tids[i], "important");
if (val) out+= "Für [["+tids[i]+"]]: "+val+"\n"
}
if (out.length) return pre+out+post;
</script>
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.