Re: PartTiddlerPlugin issue with variables in part tiddlers

70 views
Skip to first unread message

whatever

unread,
Jul 21, 2012, 5:22:22 PM7/21/12
to TiddlyWiki
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 ?

TonyM

unread,
Jul 23, 2012, 8:34:50 PM7/23/12
to tiddl...@googlegroups.com
If your lost on this one, look for InlineTabsPlugin, I don't recall the details but it may help.


On Sunday, 22 July 2012 00:20:53 UTC+10, joachimb wrote:
having following 2 tiddlers

<<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 containing the following:

joachimb

unread,
Jul 28, 2012, 1:43:51 PM7/28/12
to tiddl...@googlegroups.com
Thank you for your suggestion,
 
the InlineTabsPlugin works for me (ist not as comfortable (tab fly over)) as native Tabs but the transclusion of variables works as expected. 
Reply all
Reply to author
Forward
0 new messages