[Typo3] Inherited/Overridable Content?

Charles Rector crector at iexposure.com
Fri Apr 29 02:42:12 CEST 2005


I've done the following:

	temp.contactInfo = COA
	temp.contactInfo.10 = RECORDS
	temp.contactInfo.10.dontCheckPID=1
	temp.contactInfo.10.tables=tt_content
	temp.contactInfo.10.source=4382

	page.10.subparts.rightcolumn.stdWrap.ifEmpty < temp.contactInfo

However, all it displays in the right column is the text "COA". If I 
remove "stdWrap.ifEmpty" and assign it directly, I see my content 
element... very odd.


Tyler Kraft wrote:
> hi
> 
> sorry just read the not in template section.
> 
> If you dont want it to slide up the tree looking for content in page 
> tree in sections then maybe something like this in your template.  Set 
> the content item ona page somewhere they can edit it and then if there 
> is not right column content it will insert the default content from the 
> item that they can edit.
> 
> ADDITIONAL_INSERT = COA
> ADDITIONAL_INSERT.20 = RECORDS
> ADDITIONAL_INSERT.20.dontCheckPID=1
> ADDITIONAL_INSERT.20.tables=tt_content
> ADDITIONAL_INSERT.20.source=2347
> 
> temp.rightcolumn.10 < style.conetnt.getRight
> temp.rightcolumn.10.stdWrap.ifEmpty < ADDITIONAL_INSERT
> 
> tk
> 
> 
> Kraft Bernhard wrote:
> 
>> Charles Rector wrote:
>>
>>> Is there an easy way to inherit content elements in the same way 
>>> templates are inherited, so that they can be shared for all 
>>> sub-pages, but also overriden when needed?
>>
>>
>>
>> If you are not using Templa Voila you could try my extension:
>>
>> KB Content Slide (kb_contslide)
>>
>> It fetches the content from a column and displays it as usual... but 
>> if there is no content
>> in the specified column on the actual page it fetches it's content 
>> from the parent page and
>> from their parent if the parent is also empty ... until it finds content.
>>
>> So you can easily put the default content on your root level and 
>> override it by putting a
>> different content in the specified column of a page deeper in the tree 
>> ...
>>
>> greets,
>> Bernhard



More information about the TYPO3-english mailing list