[TYPO3-english] tt_news - the complete wrap

Ron Hall ronslists at busynoggin.com
Tue Mar 1 02:37:57 CET 2011


Hello Marc,

> But for my case I would like to enumerate the list independent from the news id. 
> 
> I need that id to manipulate the DOM from javascript. 

If you are simply manipulating it with JS, put a class on the divs, select them and target them by their position in the selection


Thanks,
Ron Hall





On Feb 28, 2011, at 4:21 PM, Marc wrote:

> Hey Robert!
> 
> Thank You for the hint! The marker NEWS_UID holds the current id of the news entry.
> 
> But for my case I would like to enumerate the list independent from the news id. 
> 
> I need that id to manipulate the DOM from javascript. 
> 
> That script is limited to the first 5 news entries so the enumeration should be always like
> 
> <div id="news_1">
> 	<h1>Title</h1>
> 	<p>Content</p>
> </div>
> 
> <div id="news_2">
> 	<h1>Title</h1>
> 	<p>Content</p>
> </div>
> 
> <div id="news_3">
> 	<h1>Title</h1>
> 	<p>Content</p>
> </div>
> 
> <div id="news_4">
> 	<h1>Title</h1>
> 	<p>Content</p>
> </div>
> 
> <div id="news_5">
> 	<h1>Title</h1>
> 	<p>Content</p>
> </div>
> 
> Regards!
> Marc
> 
> 
> 
> 
> 
> On Feb 28, 2011, at 10:55 PM, Rob De Vries wrote:
> 
>> There is a marker called : NEWS_UID
>> 
>> 
>> <div id="###NEWS_UID
>> ###">
>> you content
>> </div>
>> 
>> would add the news id.
>> 
>> Rob 
>> -- 
>> --------------------------
>> Rob De Vries
>> www.rob-ot.be
>> 
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> 



More information about the TYPO3-english mailing list