[TYPO3] cab TV getContentParts HELP
Aji Johannes
aji.yahya at gmail.com
Mon Oct 9 12:09:59 CEST 2006
Hello Folk,
i have to add an image to the header of my website and i want to change
the image only in few sites. i found the EXT cab TV getContentParts and
i do like the tutorial in Documentation, but it is not working.
i add something like this in XML
<field_headerimage type="array">
<tx_templavoila type="array">
<title>HeaderImage</title>
<description>Select the HeaderImage of the page</description>
<sample_data type="array">
<numIndex index="0">Header Image</numIndex>
</sample_data>
<eType_EXTRA type="array">
<objPath>lib.headerimage</objPath>
</eType_EXTRA>
<TypoScript>
10= RECORDS
10.source.postUserFunc = tx_kbtvcontslide_pi1->main
10.source.postUserFunc.field = field_headerimage
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
</TypoScript>
<oldStyleColumnNumber type="integer">1</oldStyleColumnNumber>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type>
<internal_type>db</internal_type>
<allowed>tt_content</allowed>
<size>5</size>
<maxitems>200</maxitems>
<minitems>0</minitems>
<multiple>1</multiple>
<show_thumbs>1</show_thumbs>
</config>
<label>HeaderImage</label>
</TCEforms>
</field_headerimage>
and i have i TS setup like this:
#### H E A D E R I M A G E ####
lib.headerimage = COA
lib.headerimage {
stdWrap.ifEmpty.cObject = RECORDS
stdWrap.ifEmpty.cObject {
source.postUserFunc = tx_cabtvgetcontentparts_pi1->main
source.postUserFunc.field = field_headerimage
source.postUserFunc.uid = 3
tables = tt_content
}
10 = RECORDS
10{
source.current=1
tables = tt_content
}
}
but it is not working, any idea ill be thankful
Johannes
More information about the TYPO3-english
mailing list