Hi, Joachim,
The problem is that the transclusion only reaches the tabs. For
example, "Tabs zu var1" is shown correctly. However, the variables
from the transclussion aren't passed on to the parts, so the result
correctly shows only "!Part1 $1". In order for the variables to be
passed to the parts, the syntax would have to be something like this:
"| Tab1 |" "Tab1 zu $1" "./Part1 with:[[$1]]"
Unfortunately, this doesn't work. The problem isn't with
PartTiddlerPlugin but with the tabs macro. I tried it with sections,
but it didn't work either.
Passing variables in a tabs macro would be a nice thing to have. :)
w
On Jul 21, 4:20 pm, joachimb <
j62.br...@googlemail.com> wrote:
> having following 2 tiddlers
>
> - *Template* <javascript:;> containing the following:
>
> <<tabs txt$3
> "| Tab1 |" "Tab1 zu $1" "./Part1"
> "| Tab2 |" "Tab2 zu $2" "./Part2"
> "| Tab3 |" "Tab3 zu $3" "./Part3"
>
> <part Part1 hidden>
> !Part1 $1
> </part>
> <part Part2 hidden>
> !Part2 $2
> </part>
> <part Part3 hidden>
> !Part3 $3
> </part>
>
> - *Test* <javascript:;> containing the following:
>
> <<tiddler [[Template]] with: "var1" "var2" "var3">>
>
> I expected to see the variable content in the parts when the tab is active
> but there was no substitution of variables.
>
> If I suppress "hidden" I can see Part1 var1 but not in the tabbed part !
> There I see "Part1 $1" instead of "Part1 var1"
>
> I'm using Tiddlywiki 2.6.5 with PartTiddlerPlugin 1.0.10
>
> Any ideas to solve this ?