Hi Tobias, Well, I wanted to make a plugin that allows multiple reading paths for a same tutorial, based on preferences set by the user. For instance, when the user sets the three config tiddlers "mp:english", "mp:power user" and "mp:android 5", the sections used for the tutorial would be those which bear the three tags "english", "power user" and "android 5".
Hence my wish to: 1. compute a filter that reflects the user config (for instance "[tag[english]tag[power user]]"). There would be more information in this filter, like the wanted location inside the tutorial. 2. Use this filter to get the list of the tiddlers that are relevant when building the tutorial. Here are my two tentative macros again. *namespace* is nothing more than a way to extract tags from configuration tiddler titles: <!-- Macro to compute the filter --> \define myfilter(namespace:"mp:") <$list filter="[prefix[$namespace$]] +[field:text[Yes]] +[removeprefix[$namespace$]]" emptyMessage="No path set!">tag[<<currentTiddler>>]</$list> \end <!-- Macro to display the filtered tiddlers --> \define mytiddlers(filter) <$list filter="[$filter$]"> </$list> \end Jed's suggestion to use <$set/> rather than <$list/> sounds like a better approach but then I have trouble figuring how I could build my filter out of any number of settings. If you see light in there, that would be terrific! -- Xavier Cazin On Tue, Jan 24, 2017 at 7:20 PM, Tobias Beer <[email protected]> wrote: > Hi Xavier, > > Can you please rewind entirely and > describe what you want to list and > what you presume the filter for that would be, statically, > and what part of that filter you want to be dynamic / parameterizable via > macro > and what roles "namespaces" are playing in all this? > > Best wishes, > > Tobias. > > -- > 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 https://groups.google.com/group/tiddlywiki. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/tiddlywiki/cf3d8ba3-fa82-4b4f-a401-ac979b7ea526%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/cf3d8ba3-fa82-4b4f-a401-ac979b7ea526%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CADeSwYPfkJG_XsytOfonMfuabX7pnjgj3RP3%2BxfWhw7Q9oEnmA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

