What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Suggestion Add Cover

netkingZ

New Member
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 :

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:
29ym3he.jpg



if you want improve your add-on you can used this solution. :D
 

netkingZ

New Member
new code:

Code:
 <xen:foreach loop="$club.customFields" value="$field" key="$key">
 <xen:if is="{$key} == 'xfa_roster_cover_club'">
     <xen:if is="{$field.value} != ''">
    
                   <div class="coverTeam" style="background: url({$field.value}) no-repeat;"></div>
    </xen:if>
</xen:if>
</xen:foreach>
 
Top