As a starting disclaimer/caveat, I am very new to TW as software but also to it's community/support documentation so if what I am asking is explained elsewhere please do redirect me as appropriate.
I am trying to write a tiddler template that "assembles" itself from little parts. In particular, I will have a number of tiddlers, each with a number of fields, and then a "View" tiddler that will present the target tiddler in different ways, depending on what fields it has. The broad structure of the output will be: *Header *Text *FooterA/FooterB/FooterC Where the content of the header will vary depending on the fields of the target tiddler, and the choice and content of the footer will also depend on the fields. So I would like there to be a way of saying something like "Display this chunk of text if the target tiddler is tagged in a certain way or has a certain field, but otherwise do nothing at all". I've tried different approaches, none of which have worked so far. 1. I've tried using the conditional syntax for <$set>, where (value= "the chunk of text or another tiddler translcusion") and then I have (emptyValue="") but this choice of emptyValue doesn't "do nothing"; instead it inserts the title of the target tiddler for some reason. 2. I also found this link: https://groups.google.com/forum/#!topic/tiddlywiki/SEIPnAVxRA0 and tried to do what it suggested but I think this is an older version of the TW because this syntax doesn't work at all for me. 3. I then tried to rewrite this last CSS-based method (and I know next to nothing about CSS) using the (@@) syntax that I found here http://tiddlywiki.com/#Styles%20and%20Classes%20in%20WikiText but again with not much luck. I included the following into my stylesheet: .myTag{ display:none} .tc-tagged-myTag .myTag{ display:inline} and then in my "View" tiddler I had something like: Header <$transclude/> @@.myTag Footer @@ This works if I manually create two vanilla tiddllers one tagged with myTag and one not tagged. But including it in the "View" tiddler doesn't work - it just does the default version of .myTag style (i.e. the display:none one) ignoring the fact that the target tiddler is in fact tagged correctly. It seems to be checking the tags on the "View" tiddler and not on the target tiddler I am trying to transclude. I am not entirely sure why. (One point of clarification. I tried making the examples above as simple as possible but in practice neither the header nor the footer are likely to be plain text but will also be transclusions, possibly though other "preprocessing" tiddlers that will change the content according to the various fields) So that's where I am and I am pretty stuck now. Any help would be appreciated. Apologies if the above is muddled. Happy to clarify anything. -- 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.

