Hi Matabele > The nested transclusions work in normal mode (although the transclusions collapse if I open another tiddler - thus changing the current tiddler) -- and also collapse when I press the hamburger icon.
This sounds very strange. Could you kindly share an example I can investigate? You're welcome to email it to me directly, Best wishes Jeremy On Fri, Apr 18, 2014 at 3:49 PM, Matabele <[email protected]> wrote: > Hi > > I have a standard report template which contains little other than a > transclusion of a report -- the name of the report to transclude is stored > in a field. This removes the tag pills from the printed report and allows > for a standard header for the report other than the name of the report > (which varies.) > > My first version used a wikitext {{myReport}} -- this works fine. > > Now I wish to store the name of the report being transcluded in a variable > -- the macro version using a wikitext transclusion works fine: > > \define transcludeTiddler(mytiddler) {{$mytiddler$}} > > <$macrocall $name="transcludeTiddler" mytiddler={{!!tiddlername}} /> > > - where the field 'tiddlername' contains the title of myTiddler > > The suggested equivalent, however, fails when the hamburger icon is > clicked: > > <$tiddler tiddler={{!!tiddlername}}> > <$transclude mode="block" /> > </$tiddler> > > The transcluded report itself contains similarly transcluded sections. The > nested transclusions work in normal mode (although the transclusions > collapse if I open another tiddler - thus changing the current tiddler) -- > and also collapse when I press the hamburger icon. > > This behaviour is consistent both for the doubly nested transclusion of > the standard report template and for the singly nested transclusions of the > sections of the report itself. > > This does not occur when I use the macro version (which uses wikitext > transclusions.) It appears that the wikitext transclusion does not suffer > when the current tiddler changes, which appears to be the case when > pressing the hamburger icon. > > regards > > On Friday, April 18, 2014 4:15:40 PM UTC+2, Jeremy Ruston wrote: > >> Hi Matabele >> >> On Fri, Apr 18, 2014 at 2:59 PM, Matabele <[email protected]> wrote: >> >>> Problem -- with the 'official' equivalent -- when I now press the >>> hamburger button, the content of the transcluded tiddler disappears. >>> >> >>> This does not happen with the macro version. >>> >> >> Strange. The hamburger icon flips the content of $:/state/sidebar between >> "yes" and "no". It's not obvious why it would make the content of the >> transclusion disappear. Can you share some code? >> >> Best wishes >> >> Jeremy >> >> >>> >>> regards >>> >>> On Monday, March 3, 2014 9:10:48 PM UTC+2, cmari wrote: >>> >>>> Hi all, >>>> The mode option in the TranscludeWidget (which is great!) allows >>>> something like this in a tiddler: >>>> >>>> Some text <$transclude tiddler="A" mode="block"/><$transclude >>>> tiddler="B" mode="block"/> and even more text. >>>> >>>> I tend to prefer block transclusion, which made me notice that the >>>> documentation for using WikiText >>>> (http://tiddlywiki.com/static/Transclusion%2520in%2520WikiText.html) >>>> doesn't really make clear that achieving the same effect without the >>>> widget, as best I can tell, >>>> requires the not entirely intuitive procedure of listing the >>>> transcluded tiddlers on separate lines >>>> (with no trailing spaces, and preceded by an additional blank line): >>>> >>>> ___________________________ >>>> Some text >>>> >>>> {{A}} >>>> {{B}} >>>> and even more text. >>>> _________________________ >>>> >>>> >>>> So two things: >>>> 1. perhaps the documentation could be updated, and >>>> 2. perhaps there could even be built-in templates to allow for >>>> something like {{A||block}} vs. {{A||inline}}? >>>> (or 3, I'm sure cleverer people will think of even better ideas and/or >>>> correct my misunderstandings). >>>> cmari >>>> >>>> >>>> -- >>> 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. >>> >> >> >> >> -- >> Jeremy Ruston >> mailto:[email protected] >> > -- Jeremy Ruston mailto:[email protected] -- 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.

