Problem with ListBox entries in PartTiddler

4 views
Skip to first unread message

eskimo07

unread,
Jul 6, 2009, 9:15:09 AM7/6/09
to TiddlyWiki
I would like to have a tiddler e.g. named "Problem" with PartTiddler
Elements e.g. "Task1", "Task2" ...

So I made custom fields in ViewTemplate and EditTemplate:
<div macro="showWhen tiddler.tags.contains('Problem')">
Who: <span macro="view who"></span> <br>
When: <span macro="view when"></span> <br>
</div>

In the Tiddlers Task1, Task2 etc made some entries in the ListBoxes:
"Who" and "When"
which works fine.

But when I open the PartTiddler slider in the "Problem"-Tiddler there
is no entry.


Here
http://gf.test1.tiddlyspot.com/index.html
is an example for that problem

Is anyone here who can tell me what I have done wrong?

Eric Shulman

unread,
Jul 6, 2009, 10:06:31 AM7/6/09
to TiddlyWiki
> I would like to have a tiddler e.g. named "Problem" with PartTiddler
> Elements e.g. "Task1", "Task2" ...
> So I made custom fields in ViewTemplate and EditTemplate:
>  <div macro="showWhen tiddler.tags.contains('Problem')">
>   Who: <span macro="view who"></span> <br>
>   When: <span macro="view when"></span> <br>
> </div>
>
> In the Tiddlers Task1, Task2 etc made some entries in the ListBoxes:
> "Who" and "When"
> which works fine.
>
> But when I open the PartTiddler slider in the "Problem"-Tiddler there
> is no entry.

I don't see where you are using PartTiddlerPlugin... it seems that you
are using TW core-supported custom fields, manipulated by TiddlyTools'
ListboxPlugin and then trancluded into the [[Problem]] tiddler using
the standard <<slider>> macro.

The problem you are having is because your <<select>> (droplist)
macros only specify a field name, without also specifying the tiddler,
i.e.:
<<select fieldname ...>>
versus:
<<select fieldname@tiddlername ...>>

When no explicit tiddlername is provided, the *current* containing
tiddler is implied. However, when a tiddler is transcluded using
<<slider>> (or <<tiddler>> or <<tabs>>), the containing tiddler is the
one that *invokes* the <<slider>> macro, and not the tiddler that is
shown inside the slider itself. Thus, if you want to refer to the
correct field value, you MUST use the explicit fieldname@tiddlername
syntax in each occurence of the <<select>> macro.

-e

eskimo07

unread,
Jul 6, 2009, 10:57:03 AM7/6/09
to TiddlyWiki

I suggested that there will be a simple answer, now it works the way I
like it.

Thank you Eric

eskimo07

unread,
Jul 6, 2009, 10:59:13 AM7/6/09
to TiddlyWiki
Oh my english is as good as my tiddlywiki knowledge

I meant suppose not suggest..
Reply all
Reply to author
Forward
0 new messages