[TYPO3-english] use tt_news if no content element

Michael Christensen michael at stenskjaer.dk
Thu Nov 27 19:56:54 CET 2008


JoH asenau skrev:
>>> 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
> 

Argh, Silly me! I converted the element to a TS object path and put in 
your snippet in the template setup, but of course I should just make it 
regular CE and insert the conf. in the DS XML..
I works like a charm. Thanks a ton!

Kind regards
Michael


More information about the TYPO3-english mailing list