Hello @Fredxd ,
if you want i create this code to show a cover to each teams:
1- i create a custom field with id : xfa_roster_cover_club ;
2- In xfa_roster_wrapper Template i insert after <xen:require css="xfa_roster.css" /> this code :
3- coverTeam is a simple .css class:
this is the final result:
if you want improve your add-on you can used this solution.
if you want i create this code to show a cover to each teams:
1- i create a custom field with id : xfa_roster_cover_club ;
2- In xfa_roster_wrapper Template i insert after <xen:require css="xfa_roster.css" /> this code :
Code:
<xen:foreach loop="$club.customFields" value="$field" key="$key">
<xen:if is="{$field.value} != ''">
<div class="coverTeam" style="background: url({$field.value}) no-repeat;"></div>
</xen:if>
</xen:foreach>
3- coverTeam is a simple .css class:
Code:
.coverTeam {
margin-bottom: -50px;
height:180px;
width:auto;
}[
this is the final result:
if you want improve your add-on you can used this solution.