inherit
\o/ ^o^ /o_ /o\
16464
0
May 11, 2024 14:24:34 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Sept 6, 2013 3:59:35 GMT -8
Currently playing with my templates for board and thread list, and I've come across I minor problem. Basically I'm trying to target a cell in the row for the last board and thread. The boards are easy enough, I can just use {if $[board.id] == "X"}, because I know which boards it will be. However, in the thread list I can't find a way to accurately target them. I've tried using the thread.index, but obviously unless every page has the perfect 25 threads (my per-page setting) it won't work properly. I tried instead using the [thread.lastIndex] variable, but that just seems to affect ALL the threads.
Am I missing something, or should I put in a request for new variables?
=]
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Sept 6, 2013 7:50:54 GMT -8
This:
{if $[thread.index] == $[thread.lastIndex]} stuff {/if} should work, can you give an example/url where it's not?
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
May 11, 2024 14:24:34 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Sept 7, 2013 0:42:18 GMT -8
Woo, works. =]
Apparently yesterday I seemed to think that simply using {if $[thread.lastIndex]}stuff{/if} would work. No troubles now though. =]
|
|