[TYPO3] LIST and SINGLE at same page (tt_news)

Luc Franken typo3 at tentoday.com
Wed Apr 19 12:56:54 CEST 2006


I just did this:
1. click on template
2. click on the right page (the page where news should be shown)
3. click on create extension template
4. put the code inside the setup part of the new template and clear 
cache etcetera.

Liu Jiansong schreef:
> Luc Franken wrote:
>> I use this code now which works as can be seen on http://h99.nl
>>
>> Maybe it can be usefull for you too!
>>
>>
>>
>> ______________________________________________________________________
>>
>>
>> # clear the code field
>> plugin.tt_news.code >
>> plugin.tt_news.code = LIST
>>
>> # prevent indexing of the LIST view
>> config.index_enable = 0
>>
>> [globalVar = GP:tx_ttnews|tt_news > 0]
>>
>> # set code to SINGLE if the GETvar tx_ttnews[tt_news] exists
>> plugin.tt_news.code = SINGLE
>>
>> # enable indexing of the SINGLE view
>> config.index_enable = 1
>>
>> [global]
>>
>> # clear main content in page object
>> page.10.subparts.content >
>>
>> # load tt_news as content to the page object
>> page.10.subparts.content < plugin.tt_news
>>
>> tt_news {
>>    general_stdWrap {
>>      parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag >
>>    }
>> }
>>
>> # this will remove the complete <p> tag from ALL content 
>> elementslib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.nonWrappedTag >
>>
>> # this line will remove only the “bodytext” class from ALL content 
>> elements
>>
>> # the <p> tag will be still rendered
>>
>> lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
>>
>>
>>
>>
>> __________________________________________________________________________________________ 
>>
>>
>>
>>
>>
>>
>> Liu Jiansong schreef:
>>  
>>> Hi all,
>>> "LIST and SINGLE at the same page" is a TS example at tt_news manual 
>>> page 56,
>>> I try to put it into main setup record, but nothing happened, how to 
>>> make it working?
>>>
>>> Thanks a lot.
>>> Liu Jiansong
>>>     
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
>>   
> Thank you, could you tell me which TS setup record that you have edited 
> with above code?
> 



More information about the TYPO3-english mailing list