Hello,
if you want i create this code to show a cover to each teams:
1- i create a custom field with id : xfa_roster_platform_club ;
1.1 - Option to choise: Pop-up single choise.
- possible choices (value/text) : pc/pc - ps4/ps4 - xboxone/xboxone
2- In xfa_roster_wrapper Template i insert after <xen:title>{$club.name} this code :
Code:
and close with: </xen:title>
Total code:
this is the final result:
if you want improve your add-on you can used this solution.
EDIT:
new Code:
if you want i create this code to show a cover to each teams:
1- i create a custom field with id : xfa_roster_platform_club ;
1.1 - Option to choise: Pop-up single choise.
- possible choices (value/text) : pc/pc - ps4/ps4 - xboxone/xboxone
2- In xfa_roster_wrapper Template i insert after <xen:title>{$club.name} this code :
Code:
Code:
[
<xen:foreach loop="$club.customFields" value="$field" key="$key">
<xen:if is="{$key} == 'xfa_roster_platform_game'">
{$field.value}
</xen:if>
</xen:foreach>]
and close with: </xen:title>
Total code:
Code:
<xen:title>{$club.name}
[
<xen:foreach loop="$club.customFields" value="$field" key="$key">
<xen:if is="{$key} == 'xfa_roster_platform_game'">
{$field.value}
</xen:if>
</xen:foreach>]
</xen:title>
this is the final result:

if you want improve your add-on you can used this solution.
EDIT:
new Code:
Code:
<xen:title>{$club.name}
<xen:foreach loop="$club.customFields" value="$field" key="$key">
<xen:if is="{$key} == 'xfa_roster_platform_game'">
<xen:if is="{$field.value} != ''">
[{$field.value}]
</xen:if>
</xen:if>
</xen:foreach></xen:title>
Last edited: