inherit
223778
0
Mar 19, 2024 20:09:40 GMT -8
cfleet1
310
July 2015
cfleet1
|
Post by cfleet1 on Feb 8, 2017 17:49:21 GMT -8
|
|
inherit
140147
0
Apr 20, 2024 22:11:25 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,003
May 2009
nscalerr
|
Post by Nscalerr 🐺 on Feb 8, 2017 22:42:06 GMT -8
Hi cfleet1This is in the same Board List template, (same one as before) and lines 26 to 31, (on the default template). The following is the code you will see. {if $[board.sub_board]} <p class="sub-boards"> Sub-board{if $[board.sub_board] != 1}s{/if}: {foreach $[board.sub_board]}<a href="$[board.sub_board.href]">$[board.sub_board.name]</a>$[board.sub_board.comma] {/foreach} </p> {/if} Now you need to change it so it is like this bit of code. This will hide any sub boards from showing up. Any problems post back here. <!-- {if $[board.sub_board]} <p class="sub-boards"> Sub-board{if $[board.sub_board] != 1}s{/if}: {foreach $[board.sub_board]}<a href="$[board.sub_board.href]">$[board.sub_board.name]</a>$[board.sub_board.comma] {/foreach} </p> {/if} -->
|
|
inherit
223778
0
Mar 19, 2024 20:09:40 GMT -8
cfleet1
310
July 2015
cfleet1
|
Post by cfleet1 on Feb 9, 2017 13:50:51 GMT -8
Hi cfleet1 This is in the same Board List template, (same one as before) and lines 26 to 31, (on the default template). The following is the code you will see. {if $[board.sub_board]} <p class="sub-boards"> Sub-board{if $[board.sub_board] != 1}s{/if}: {foreach $[board.sub_board]}<a href="$[board.sub_board.href]">$[board.sub_board.name]</a>$[board.sub_board.comma] {/foreach} </p> {/if} Now you need to change it so it is like this bit of code. This will hide any sub boards from showing up. Any problems post back here. <!-- {if $[board.sub_board]} <p class="sub-boards"> Sub-board{if $[board.sub_board] != 1}s{/if}: {foreach $[board.sub_board]}<a href="$[board.sub_board.href]">$[board.sub_board.name]</a>$[board.sub_board.comma] {/foreach} </p> {/if} --> Just did it. Works. Thanks so much.
|
|
inherit
140147
0
Apr 20, 2024 22:11:25 GMT -8
Nscalerr 🐺
Throw me to the wolves and I'll return leading the pack!
3,003
May 2009
nscalerr
|
Post by Nscalerr 🐺 on Feb 10, 2017 0:07:16 GMT -8
|
|
inherit
219538
0
May 16, 2023 10:23:34 GMT -8
Midgardo
149
March 2015
midgardo
|
Post by Midgardo on Mar 21, 2017 22:36:15 GMT -8
Is there a way to do this just for one specific board??
|
|
#eb7100
1480
0
1
Apr 25, 2024 15:07:49 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on Mar 21, 2017 23:23:32 GMT -8
Is there a way to do this just for one specific board?? There is. You would need to put an if statement checking for the board ID: {if $[board.sub_board]}
{if $[board.id] == 1} <p class="sub-boards">
Sub-board{if $[board.sub_board] != 1}s{/if}:
{foreach $[board.sub_board]}<a href="$[board.sub_board.href]">$[board.sub_board.name]</a>$[board.sub_board.comma] {/foreach}
</p>
{/if} {/if} So you can see the line {if $[board.id] == 1} has been added. Change the 1 to the board ID you want it to affect. Currently, as it is, the sub-boards will show up on that board, and not on all others. If you want it the other way around, as in, display on all other boards except that one, then change the == to !=
|
|