[TYPO3-templavoila] Get total number of sections

Kay Strobach typo3 at kay-strobach.de
Fri Mar 9 21:19:46 CET 2012


Hi Matthias,

take a look into LOAD_REGISTER, use e.g. RECORDS inside to count the
sections and then you have your needed number.

;) - not an easy, but an solveable task ;)

Regards
Kay

Am 09.03.2012 20:27, schrieb Matthias:
> 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
> 
> 
> 


-- 
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