Hi Ulrik

This results in no display of the field-info when in a tab in MainTiddler:
> # The TestTidler with the field info
> Info: {{!!info}}
>
> # Main tiddler without the field info
> <<tabs "[[TestTiddler]]">>
>

The problem here is that the <$list> widgets inside the tabs macro iterate
through the variable "currentTab", and not "currentTiddler". The value of
"currentTiddler" is unchanged by the tabs macro.

With the syntax {{!!info}} the title defaults to the "currentTiddler"
variable.

An alternative way of achieving what you want is to use something like this:

info: <$tiddler tiddler=<<currentTab>>>{{!!info}}</$tiddler>

Here, we've wrapped the transclusion in a "tiddler" widget which sets the
currentTiddler variable correctly for us.


>
> This results in display of the field-info in the tab in MainTiddler:
> # The TestTidler with the field info
> Info: {{!!info}}
>
> # TmpTab
> {{TestTidler}}
>
> # MainTiddler without the field info
> <<tabs "[[TmpTab]]">>
>

This works because the transclusion in TmpTab sets the current tiddler to
the target tiddler.

Best wishes

Jeremy



>
> Is there a way around this? At the moment, I'm looking at nearly
> duplicating a number of tiddlers with no added information.
>
> To remind me what information I would like to see included, I use fields
> in my templates - is this misuse of fields?
>
> Thanks,
> Ulrik
>
> --
> 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]

-- 
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.

Reply via email to