TYPO3 Reea Blog

This will be shown to users with no Flash or Javascript.

Se folosește pentru a a repeta o coloană în tot tree-ul

Se folosește pentru a a repeta o coloană din Templa Voila în tot tree-ul.
Se pune in Local Procesing XML.


Trebuie pus in XML la template ptr a putea face localizarea corecta si in cazul FCE-urilor
    <langDisable>0</langDisable>
    <langChildren>1</langChildren>

<T3DataStructure>
	<ROOT type="array">
		<el type="array">


			<field_content_right type="array">
				<tx_templavoila type="array">
					<title>CONTENT RIGHT</title>
					<description>CONTENT RIGHT</description>
					<sample_data type="array">
						<numIndex index="0">CONTENT RIGHT</numIndex>
					</sample_data>
					<eType>ce</eType>
					<TypoScript><![CDATA[
	10= RECORDS
	10.source.postUserFunc = tx_kbtvcontslide_pi1->main
	10.source.postUserFunc.field = field_content_right
	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>CONTENT RIGHT</label>
				</TCEforms>
			</field_content_right>

			<imageheader type="array">
				<tx_templavoila type="array">
					<title>IMAGE HEADER</title>
					<description>IMAGE HEADER</description>
					<sample_data type="array">
						<numIndex index="0">IMAGE HEADER</numIndex>
					</sample_data>
					<eType>image</eType>
					<eType_EXTRA type="array">
						<objPath>lib.myObject</objPath>
					</eType_EXTRA>
					<TypoScript>
<![CDATA[
    5 = LOAD_REGISTER
    5.maxImageWidthInText = 100
    5.maxImageWidth = 180
    10 = IMAGE
    10.file.import = uploads/tx_templavoila/
    10.file.import.cObject = TEXT
    10.file.import.cObject{
    postUserFunc = tx_kbtvcontslide_pi1->main
    postUserFunc{
    field = imageheader
    languageFallback = 0
    }
    }
    10.file.import.listNum = 0
    10.file.maxW = 705

	10.titleText.cObject = TEXT
	10.titleText.cObject.value = {page:title}
	10.titleText.cObject.insertData = 1  

	10.altText.cObject = TEXT
	10.altText.cObject.value = {page:title}
	10.altText.cObject.insertData = 1
  ]]>
				</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 HEADER</label>
				</TCEforms>
			</imageheader>

		</el>
	</ROOT>
</T3DataStructure>


10.altText.field = titletag 
10.altText.ifEmpty.dataWrap = {field:supratitle} {field:title} // doua field-uri adunate daca nu se completeaza nimic la titletag

blog comments powered by Disqus