FYI - some more detail...

In a <div class="cols2"> layout, the mgtdList in the left column
disappears when any checkbox is clicked. This is regardless of whether
using ToggleTagPlugin or a different way.
In a <div class="cols3"> layout, where there is an mgtdList in each
column, it seems to be stable.

No idea why, although I did find a css entry in MonkeyGTDTheme which
hides col2 's:

/* IE not doing these right :( */
/* .cols3>br, .col>br { display:none; } */

/* so try this instead. it's annoying and will mean you have trouble
with brs in non-mgtdlist content. .normal might help */
.cols2 br, .cols3 br  { display:none; }

However, commenting this out didn't seem to help.

So, no idea why the mgtdList in a col2 gets hidden / destroyed when I
click a checkbox, when passing a dom object variable (such as
parent.tiddler.title) as a %0 parameter.

Simon? Anyone?

Regards,
David.

On Feb 5, 11:34 am, David Szego <[email protected]> wrote:
> I'd like to create a ToggleTag checkbox (using the ToggleTagPlugin)
> which sets a tag containing the name of the tiddler where the checkbox
> resides.
>
> For instance, Tiddler1 should show a list of tiddlers, and the
> ToggleTag checkbox before each listed tiddler should toggle a tag
> "Tiddler1" (where the list is being shown):
>
> Tiddler1:
>
>         <div macro="mgtdList title:'Attendees' tags:'Contact'
> view:Attendee
>                 ignoreRealm:yes
>                 newButtonTags:'Contact'
>                 local:yes
>         "></div>
>
> Tiddler2:
>
>         render_Attendee: function() {
>           return this.renderUtil(
>                 '{{attendee{'+
>                 '<<toggleTag [[Attended@%1]] [[%0]] ->>'+
>                 ' &nbsp;[[%0]] '+
>                 '}}}'+
>                 '{{notesLink{<<showNotesIcon [[%0]]>>}}}',
>                 [
>                   this.title, parent.tiddler.title
>                 ]
>           );},
>
> What happens is, the tiddler *does* get tagged "Attended@Tiddler1",
> but the whole mgtdList div in Tiddler1 disappears!!!
> If I refresh Tiddler1 (close/open), the list shows properly, and the
> checkbox remains.
>
> Odd behaviour: If I pass a string, or something undefined as %1 (for
> instance, "asdf" or foo.bar), it tags as "Attended@asdf" or
> "Attended@undefined" and the mgtdList on Tiddler1 remains intact as
> expected.
>
> How do I properly pass the title of the tiddler on which the mgtdList
> resides, as the "tag" parameter of ToggleTagPlugin?
>
> Help! This one's really driving me crazy!!
>
> Thanks,
> David Szego

-- 
You received this message because you are subscribed to the Google Groups "GTD 
TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gtd-tiddlywiki?hl=en.

Reply via email to