[TYPO3-templavoila] Get total number of sections
Kay Strobach
typo3 at kay-strobach.de
Fri Mar 9 19:07:24 CET 2012
Hi Matthias,
use one load_register to count the records and a second with stdwrap
equals to decide, wether an element is the lastone.
Regards
Kay
Am 09.03.2012 16:54, schrieb Matthias:
> Hey folks,
>
> first mail here, please bear with me. :-)
>
> I know how to index TemplaVoila sections using LOAD_REGISTER et al., also how to find out if I'm at the first section or not. There are plenty of examples out there.
>
> What I don't know is how determine when I'm at the last section. I have an FCE which consists of a series of links and I want to give the last link a class, something along the lines of "last-link". (Internet Explorers up to version 8 don't support the CSS :last-child pseudo class and I want a solid way of addressing that last link within my CSS.)
>
> Anybody any idea?
>
> - Matthias
>
>
--
http://www.kay-strobach.de - Open Source Rocks
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
Answer was useful: https://flattr.com/profile/kaystrobach
More information about the TYPO3-project-templavoila
mailing list