[TYPO3] LIST and SINGLE at same page (tt_news)
Liu Jiansong
jiansong.liu at gmail.com
Wed Apr 19 14:03:14 CEST 2006
Thank you very much, it works now, :-D
and it need some additional steps in my situation:
1. clear Plugin Options - "What to display", neither LIST nor SINGLE
2. replace [global] section with below code
I don't know the reason exactly, maybe it caused by the template
selector ext (introduced in "Modern Template Building. Part 2+3").
______________________________
[global]
styles.content.get >
styles.content.get < plugin.tt_news
______________________________
Thanks and best regards,
Liu Jiansong
Luc Franken wrote:
> 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?
>>
>>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
--
Thanks & Best regards,
Liu Jiansong
More information about the TYPO3-english
mailing list