
My global macro shows a list of all tiddlers with a certain tag[category]. The tag is taken from the list field of the tiddler that calls the macro. The macro works fine when used in a regular tiddler, but if I set the tiddler to be a sidebar via $:/tags/SideBar, the sidebar shows the tab, but nothing inside.
My prior version worked when the macro call explicitly identified the tag as follows: <<activityList book>>, but what I really want is to put the category (book) in a field and pull that via: <$macrocall $name=activityList category={{!!list}} />. Again, this works as tiddler, but sidebar.
This is the macro (the 3rd and 4th lines are not relevant, they are just the output): (the category is the variable tag. "tag" parameter is just the word tag.)
\define activityList(category:"" tag:"tag[")
<$list filter="[$tag$$category$]]">
» <$link to=<<currentTiddler>>><$view field=title/></$link><br>
{{||$:/core/ui/ViewTemplate/tags}}
</$list>
That's basically it, but, just to note: I made another version that modifies the macro to use a call to include the brackets: [book]. That had no effect.