Is this a function bug or am I just doing this wrong (solved: old plugin)

Hello,

I was trying to suppress the body of tiddlers tagged “Evaluation” and replace it with the content wrapped in a <$let> widget to redefine some variables. Normally these tiddlers are transcluded in the context of another tidder that defines these but I wanted it to display the same thing when the “Evaluation” tidder was viewed separately in the story river or when popped out as a separate window (that second part is where things go astray.

So I have a tidder tagged with $:/tags/ViewTemplate that contains:

<$list filter=[is[current]tag[Evaluation]]>
<$let ... some variables redefined ...>

{{}}
</$let>
</$list>

And a tidder with $:/tags/ViewTemplateBodyFilter that contains:

[tag[Evaluation]then[$:/core/ui/ViewTemplate/body/blank]]

and I moved that up just before the “default” ViewTemplateBodyFilter in the list.

Things seem to work well in the story river. The expected content is there in the right context.

But when I “Open in new window” I get the Internal Javascript Error:
Uncaught TypeError: innerListener is not a function

Should this be displayed correctly as a separate window too or is there some other template I need to set up for that?

Thanks,
/Mike

(post deleted by author)

Sorry … this is not an issue with functions or ViewTemplates even with everything striped out, tiddlers are not viewing externally properly so this may be an issue with a plugin or some security measure messing with popups. I will investigate with a new empty Tiddlywiki.

/Mike

1 Like

The culprit was an old “tagstree Filter Operator” plugin (v 0.9.0). It may have well been updated to work but I haven’t kept it up to date since I didn’t end up using it in the end and rolled my own recursive macro instead.

1 Like