On multiple occasions I need to have buttons display the icon from the "icon" field of another tiddler. In this other tiddler the "icon" field is the name of a tiddler that is not an image but is using a FontAwesome macro. (I also tried on multiple occasions using an svg as the tiddler referenced by the icon field, so I don't think that's the problem)
I tried my best for the past week to find a solution to this problem by myself with online resources but I can't find this very topic mentioned anywhere and the solution keeps eluding me.
For instance this is the content of a modified tabs macro I'm using :
Enter code here...\define viewmode-icon-tabs(tabsList,default,state:"$:/state/tab",class,template,buttonTemplate,retain)
<div class="tc-tab-set $class$">
<div class="tc-tab-buttons $class$">
<$list filter="$tabsList$" variable="currentTab"><$set name="save-currentTiddler" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
<$tiddler tiddler=<<save-currentTiddler>>>
<$set name="tv-wikilinks" value="no">
<$setvars
_currentTab=<<currentTab>>
_currentTabIcon=[[currentTab!!icon]]
tabIcon="\{{\ currentTabIcon \}}\">
<<tabIcon>>
<$image src=<<tabIcon>> />
<$transclude tiddler=<<currentTab>> field="role"/>
<$transclude tiddler="$buttonTemplate$" mode="inline">
<$macrocall $name="tabIconPath" $type="image/svg+xml" $output="image/svg+xml"/>
</$transclude>
</$setvars>
</$set></$tiddler></$button></$tiddler></$set></$list>
</div>
<div class="tc-tab-divider $class$"/>
<div class="tc-tab-content $class$">
<$list filter="$tabsList$" variable="currentTab">
<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$" retain="""$retain$""">
<$transclude tiddler="$template$" mode="block">
<$transclude tiddler=<<currentTab>> mode="block"/>
</$transclude>
</$reveal>
</$list>
</div>
</div>
\end
And this is the result whatever I try with my variables. Developper tools confirm that the image src is undefined.
The closest I got to transcluding the icon was with using
<$transclude tiddler=<<currentTab>> field="role"/>
... wich made the tabs display the name of the tiddler containing the FontAwesome macro.
Hints ?