> I have a tiddler which contains work instructions consisting of several
...
> The work instructions are for different software products. So some steps do
> not apply to all products. In one of my tiddlers ("Release Information") I
> have a field ("component") which contains the name of the product.
>
> So is it possible to change my "checkInfo" tiddler somehow so that it
> outputs nothing if the "component" is not a specific one?

see http://www.TiddlyTools.com/#CoreTweaks

Core tweak #890:
-----------------
This tweak extends the <<tiddler>> macro syntax so you can include a
javascript-based test expression to determine if the tiddler
transclusion should be performed:

   <<tiddler TiddlerName if:{{...}} with: param param etc.>>

If the test is true, then the tiddler is transcluded as usual. If the
test is false, then the transclusion is skipped and no output is
produced.
-----------------

To apply this tweak, you can either import the CoreTweaks tiddler from
TiddlyTools or just create a tiddler, tagged with 'systemConfig',
containing the following code:
------------------------------
config.macros.tiddler.if_handler = config.macros.tiddler.handler;
config.macros.tiddler.handler =
function(place,macroName,params,wikifier,paramString,tiddler)
{
        params = paramString.parseParams('name',null,true,false,true);
        if (!getParam(params,'if',true)) return;
        this.if_handler.apply(this,arguments);
};
----------------------------

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.


Reply via email to