On Sunday, May 25, 2014 2:43:51 PM UTC-7, Jan wrote:
>
>  I need this to generate a report giving out the value of the field 
> "important" in the the tiddlers which are Tiddlylinks in a StoryTiddler 
> created by Erics SaveStoryPlugin.
> If the links are:
> [[Tiddler1]]
> [[Tiddler2]]
> ...
> I want generate
> important@Tiddler1
> important@Tiddler2
> ....
>  as wikified output
>

For some kinds of generated output, it's can be easier to write inline 
javascript code, rather than trying to "shoehorn" fragments of javascript 
into the ForEachTiddler macro syntax.  Here's the code for producing the 
output you desire, using
   http://www.TiddlyTools.com/#InlineJavascriptPlugin

<script>
var out="";
var tids=store.getTiddler("SomeStoryTiddler").getLinks();
if (tids.length) {
   out+="@@font-size:2em;[img(30px,)[Tag.png]] Denken an:\n"; 
   for (var i=0; i<tids.length; i++)
      out+= "Für [["+tids[i]+"]]: "+store.getValue(tids[i], 
"important")+"\n"' 
   out+="@@";
}
return out;
</script>

If you put the above script into a tiddler, e.g. [[ShowStoryStatus]], and 
replace 
   var tids=store.getTiddler("SomeStoryTiddler").getLinks();
with
   var tids=store.getTiddler("$1").getLinks();

You can then invoke the script for any desired "story" tiddler by writing:
   <<tiddler ShowStoryStatus with: "TiddlerTitleGoesHere">>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to