Thanks. This looks like exactly what I was seeking. :) On Tuesday, March 10, 2015 at 7:50:26 PM UTC-6, Eric Shulman wrote: > > On Tuesday, March 10, 2015 at 4:46:26 PM UTC-7, [email protected] wrote: >> >> I wish to assemble tiddlers into larger text documents using tags and >> transclusion. I am not a programmer. I have tried to accomplish this by >> transcluding a series of tiddlers carrying the same tag. The result would >> be something like this: >> I would like to be able to use the tag list to add to the text, and to >> rearrange the paragraphs. This would seem doable, perhaps even simple in >> TW5, but the solution has escaped me. >> I have tried various solutions, such as using the $list widget, or >> different permutations of the following: {{{ [tag[tiddler]] }}}. Can >> anybody help me? >> > > Hi Merv, > > The <$list> widget is, indeed, the right solution: > ------------ > <$list filter="[tag{!!title}]"> > <$transclude tiddler={{!!title}} mode="block" /> > </$list> > ------------ > > The above wiki syntax says: > "For each tiddler tagged with the current tiddler title, transclude the > matched tiddler content in block mode (i.e, as a paragraph)" > > Notice how, in the $list widget filter, the inner square brackets are > *replaced* by the curly braces... this indicates that the tag value (i.e., > "!!title") is actually to be retrieved from the title field of the > currentTiddler, rather than being treated as literal text. The $list > widget tjem loops over all the matched tiddlers (based on the tag filter), > setting the currentTiddler variable each time it renders the content, so > that the {{!!title}} parameter of the $transclusion widget pulls the > content from each matched tiddler. > > The default order for tag filters matches is *alphabetic by title*, so > that the paragraphs would be shown in order of their respective titles. To > change the order of the transcluded tiddlers, create a "list" field in the > tiddler that contains the <$list> macro, and set the value to a > space-separated list of the tiddler titles, in the order you want (don't > forget to use [[...]] around titles with spaces!). Any titles NOT entered > into the list field will be displayed after those that are listed. > > You can also control the order of output by adding "list-before" or > "list-after" fields to the individual paragraph tiddlers... the field value > is the title of another tiddler, and indicates that the tiddler with the > "list-*" field will be rendered before/after the tiddler title specified as > the field value. > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios > > "Inside TiddlyWiki: The Missing Manual" > > https://www.indiegogo.com/projects/inside-tiddlywiki-the-missing-manual/x/8816263 > Note: the IndieGogo funding campaign has ended, > but direct fundraising continues below... > > 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 "TiddlyWikiDev" 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/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
