Former Member
inherit
guest@proboards.com
251770
0
Nov 22, 2024 20:44:50 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 6, 2019 16:25:11 GMT -8
How would I go about something like this?
{if $[route.board] == '40'}
tessst
{if.else}
{else}
$[board.description]
{/if}
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 6, 2019 17:27:24 GMT -8
Which layout template are you modifying? The variable you need to use is dependent upon this.
|
|
Former Member
inherit
guest@proboards.com
251770
0
Nov 22, 2024 20:44:50 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 6, 2019 18:54:49 GMT -8
Just the board list, I'm trying to specify different layouts depending on the board ID. <3
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 7, 2019 10:23:00 GMT -8
$[board.id] should suffice in that case, assuming you're making the changes inside the {foreach $[board]} loop.
|
|
Former Member
inherit
guest@proboards.com
251770
0
Nov 22, 2024 20:44:50 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 11, 2019 16:32:37 GMT -8
Thank you Brian, exactly what I needed. Seems so obvious now though.
|
|