[TYPO3-templavoila] Get total number of sections

Matthias mawe at typeofundefined.com
Fri Mar 9 20:27:26 CET 2012


Hey Kay, thanks for the prompt answer!

I of course thought of this. But compare it what? I need to know how many sections there are, but I have no clue how to get that number. :-|  


Am Freitag, 9. März 2012 um 19:07 schrieb Kay Strobach:

> 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
> _______________________________________________
> TYPO3-project-templavoila mailing list
> TYPO3-project-templavoila at lists.typo3.org (mailto:TYPO3-project-templavoila at lists.typo3.org)
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-templavoila





More information about the TYPO3-project-templavoila mailing list