> One last wish remains...can i somehow make use of the excludeStoryTag in
> the expression
>
> var out="";
> story.forEachTiddler(function(t){out+="[["+t+"]]\n";});
> out;
>
> to exclude the unwanted tiddlers? To achieve the best of both worlds.

story.forEachTiddler(function(t){
   var tid=store.getTiddler(t);
   if(!tid||!tid.isTagged("excludeStory"))
      out+="[["+t+"]]\n";});

Note use of "!tid" to check to see if the tiddler exists.  This is
because the current story may be displaying *shadow* tiddlers -- which
don't "exist" in the normal sense, and are not tagged in any event.

If you want to include only "real" (non-shadow) tiddlers in the
result, change the conditional to:
   if(tid&&!tid.isTagged("excludeStory"))

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://www.TiddlyTools.com/#Donations

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 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.

Reply via email to