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!

Support Resolved Replace Tournament background

toodlez

Member
What would I need to place with a conditional in the css in extra.less to replace the background image of the page based on the tournament ID?
 
We have no class in the tournament template that has the tournament id.
Perhaps having some conditions based on the $tournament variable but I am unsure if it's accessible in extra.less.
You could try.
 
Something like that:
Code:
<xf:if is="{$tournament.tournament_id} == your_id">
.tournamentBody-main {
your css code here
}
</xf:if>

But not sure that will work.
 
Something like that:
Code:
<xf:if is="{$tournament.tournament_id} == your_id">
.tournamentBody-main {
your css code here
}
</xf:if>

But not sure that will work.


<xf:if is="$tournament.tournament_id == 16">
.p-pageWrapper {
background: #111 url('my url here') !important;
}
</xf:if>

this is what I did, no luck
 
No it's a question of how xF2 put the variables in the templates.
My thinking was that it's not.

In that case, I think you would need to put some <style></style> in the tournament view template based on tournament id.
With a !important on the background to ensure it overrides.

Clément
 
Top