On May 14, 11:35 am, roma <[email protected]> wrote:
> As a matter of fact, I get the "story" list of tiddlers like this :
> [[tiddler 1]]<<tiddlerIcons "=tiddler 1">>
> [[tiddler 2]]<<tiddlerIcons "=tiddler 2">>
...
> So that when I am looking for printing, Eric's script :
> <script label="impression" title="ouvre tous ...">
> var tids=store.getTiddlerText("FuniculaireDuLivre","").readBracketedList();
...
> </script>
> renders some false tiddlers like :
> "chchTiddlers"
> "=tiddler 1"
The problem is that your 'source' tiddler contains text which is not
actual tiddler name references. The .readBracketedList() function
processes the entire text as a space-seperated list, with brackets or
quotes around tiddler names that contain spaces.
Your first inclination -- to remove unwanted syntax before 'reading'
the bracketed list -- is not a bad approach, but it can quickly get
overly complicated (as you've noticed!) due to the variety of syntax
you might need to exclude.
Fortunately, there's a way to get ONLY the actual tiddler links,
without having to process the full tiddler text content... instead of
this line:
var
tids=store.getTiddlerText("FuniculaireDuLivre","").readBracketedList();
you can write:
var t=store.getTiddler("FuniculaireDuLivre").links;
This will result in the same list of tiddlers that the
StorySaverPlugin's <<openStory>> gives, except that it doesn't filter
out any tiddlers tagged with "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 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.