On Thursday, May 21, 2015 at 11:26:51 AM UTC-7, Mark S. wrote:
>
> I would like to create a bunch of new tiddlers (preferably not in draft 
> mode) from a list contained in a separate tiddler (it could be an existing 
> data tiddler if necessary).
> In other words, can I iterate through a list, generating new tiddlers? 
> I could do this sort of thing with the <javascript> tag in TWC.
> The List widget allows me to do things the other way -- iterate over a 
> list of existing tiddlers, but there doesn't seem to be any tools for 
> generating a bunch of tiddlrs based on a list. I'm hoping there's some 
> widget or technique that can help with this.
>

Actually, the <$list> widget WILL do what you want:

1) First, create a tiddler, ListOfTitles, containing tiddler titles using a 
whitespace-separate list with doubled-brackets around titles with spaces in 
them.  For example:

ListOfTitles
-------------------
[[foo bar]]
baz
[[mumble frotz]]
gronk
snork
---------------------

2) Then, use this button definition:
<$button>
make new tiddlers from list
<$list filter={{ListOfTitles}}>
<$action-setfield $tiddler={{!!title}} text=""/>
</$list>
</$button>
Note: using <$list> inside <$button> requires TW v5.1.8 or above.

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b71c09f4-a623-415d-bb5d-05580402e785%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to