On Friday, March 14, 2014 8:37:36 PM UTC-7, Ethan Maher wrote:
>
> <html><a href="javascript:;" onclick="story.closeAllTiddlers
> ();story.displayTiddlers(null,store.getTiddlerText
> ('DefaultTiddlers').readBracketedList())" title="See the Main Story 
> River">$1</a></html>
>
> But I have a problem -- my DefaultTiddlers render a certain number (9) of 
> recently modified tiddlers tagged 'post'.  How do I fix this so that the 
> tiddlers load accordingly, when using this "home" link within my tiddler 
> [[riverflowsforth]]?
>

You are using filter syntax within DefaultTiddlers.  However, 
".readBracketedList()" does not process filters.  It simply chops up the 
default tiddlers list, based on white-space separated values.  Thus, the 
filter contained in DefaultTiddlers is treated as a literal tiddler title, 
rather than being expanded into a list of matching tiddlers.

instead of writing:
store.getTiddlerText('DefaultTiddlers').readBracketedList()

you can write:
store.filterTiddlers(store.getTiddlerText('DefaultTiddlers')).map(function(t
){return t.title}) 

This should allow your code to correctly process the filter syntax within 
DefaultTiddlers and convert it to a set of tiddler titles that are then 
displayed.

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

Reply via email to