[Typo3] first steps in tv
Bartosz Aninowski
bart at sonik.pl
Wed Nov 9 19:00:59 CET 2005
Hi
I've decided to know how to use and integrate TV ext in typo3.
I am reading carefully doc right know and have problem with FCE.
I've done exactly as described here
http://typo3.org/documentation/document-library/doc_tut_ftb1/Creating_a_basic_Fle/
but there is no bodytext on my page just <p></p>
this is my DS
<T3DataStructure>
<ROOT type="array">
<tx_templavoila type="array">
<title>ROOT</title>
<description>Select the HTML element on the page which you want
to be the overall container element for the template.</description>
</tx_templavoila>
<type>array</type>
<el type="array">
<field_header type="array">
<tx_templavoila type="array">
<title>Header</title>
<sample_data type="array">
<numIndex index="0">sample header</numIndex>
</sample_data>
<eType>input_h</eType>
<TypoScript>
10 = TEXT
10.current = 1
10.typolink.parameter.field = field_linkurl
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Header</label>
</TCEforms>
</field_header>
<field_bodytext type="array">
<tx_templavoila type="array">
<title>Bodytext</title>
<sample_data type="array">
<numIndex index="0">sample body</numIndex>
</sample_data>
<eType>text</eType>
<TypoScript>
10= RECORDS
10.source.current=1
10.tables = tt_content
</TypoScript>
<description>sample body</description>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>text</type>
<cols>48</cols>
<rows>5</rows>
</config>
<label>Bodytext</label>
</TCEforms>
</field_bodytext>
<field_image type="array">
<tx_templavoila type="array">
<title>Image</title>
<description>sample image</description>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 200
10.stdWrap.typolink.parameter.field = field_linkurl
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type>
<internal_type>file</internal_type>
<allowed>gif,png,jpg,jpeg</allowed>
<max_size>1000</max_size>
<uploadfolder>uploads/tx_templavoila</uploadfolder>
<show_thumbs>1</show_thumbs>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
</config>
<label>Image</label>
</TCEforms>
</field_image>
<field_linktitle type="array">
<tx_templavoila type="array">
<title>Link title</title>
<description>Link title</description>
<sample_data type="array">
<numIndex index="0">Link title</numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Link title</label>
</TCEforms>
</field_linktitle>
<field_linkurl type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Link Url</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>link</eType>
<tags>a:attr:href</tags>
<eType_EXTRA type="array">
<objPath>lib.myObject</objPath>
</eType_EXTRA>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
</TypoScript>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>15</size>
<max>256</max>
<checkbox></checkbox>
<eval>trim</eval>
<wizards type="array">
<_PADDING type="integer">2</_PADDING>
<link type="array">
<type>popup</type>
<title>Link</title>
<icon>link_popup.gif</icon>
<script>browse_links.php?mode=wizard</script>
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
</link>
</wizards>
</config>
<label>Link Url</label>
</TCEforms>
</field_linkurl>
</el>
</ROOT>
</T3DataStructure>
More information about the TYPO3-english
mailing list