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 Done Platform Game

netkingZ

New Member
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:
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:
2zdn5uw.png



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


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:
Top