[TYPO3-english] use tt_news if no content element

JoH asenau info at cybercraft.de
Thu Nov 27 18:36:34 CET 2008


>> What you want should be done the other way around:
>> First create the fallback (tt_news) and then override it with the
>> records. 10 = COA
>> 10 {
>>     10 < plugin.tt_news
>>     stdWrap.override.cObject = RECORDS
>>     stdWrap.override.cObject {
>>         source.current = 1
>>         tables = tt_content
>>         stdWrap.required = 1
>>         stdWrap.wrap = <!--TYPO3SEARCH_begin--> |
>>     <!--TYPO3SEARCH_end--> }
>> }
>>
>> stdWrap will work with RECORDS at least with 4.2.3 although not
>> mentioned in TSref.
>
> Okay. But how do I make a location in the template TS object path AND
> Content Element as eType at the same time? Do you understand? It want
> it to be possible to use the TV page module to insert content, but if
> nothing is inserted, it's gonna take the latest news record..

Well - I don't understand the problem.
If it worked with the TEXT example before, you can use my code snippet 
exactly the same way.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
T3 cookbook (2nd edition): http://www.typo3experts.com
Jobs: http://www.professionals-only.com 




More information about the TYPO3-english mailing list