[TYPO3-german] SOLUTION: Wie erzeuge ich tt_content LINKs in einem FCE

Joerg Schoppet joerg at schoppet.de
Mon Sep 18 15:25:55 CEST 2006


Joerg Schoppet wrote:
> Hallo,
> 
> Ich habe ein FCE mit einem Content-element erstellt, somit habe ich den 
> folgenden DS:
> <code>
>             <field_related type="array">
>                 <tx_templavoila type="array">
>                     <title>Related Processes</title>
>                     <sample_data type="array">
>                         <numIndex index="0"></numIndex>
>                     </sample_data>
>                     <eType>ce</eType>
>                     <TypoScript><![CDATA[
>     10 = RECORDS
>     10.source.current = 1
>     10.tables = tt_content
>             ]]></TypoScript>
>                 </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>Related Processes</label>
>                 </TCEforms>
>             </field_related>
> </code>
> 
> Aber mit dieser TypoScript-Einstellung werden die ausgewählten 
> Content-Elemente direkt angezeigt. Ich will jedoch nur einen Link zu dem 
> jeweiligen Content-Element haben.
> 
> Ich habe schon alles mögliche probiert und stecke jetzt an folgendem fest.
> 
> Im conf-Bereich des RECORDS-Objektes habe ich ein COA-Objekt erzeugt.
> Das erste Element ist HTML und erzeugt '<a href="', das zweite Element 
> ist TEXT und dort wollte ich typolink.parameter mit der <pid>#<uid> des 
> content-elements füllen. Ich bekomme das aber nicht hin.
> 
> Weiß jemand wie das geht oder gibt es da einen ganz anderen Ansatz:
> 
> Hier ist das TypoScript soweit wie ich gekommen bin, nur dadurch dass 
> ich keinen typolink für die Link-Erzeugung nutze, wird der Link auch 
> nich durch realURL "verschönert":
> <code>
>     10 = RECORDS
>     10 {
>         source.current = 1
>         tables = tt_content
>         conf.tt_content = COA
>         conf.tt_content {
>             10 = HTML
>             10.value = <a href="index.php?id=
>             20 = TEXT
>             20.field = pid
>             30 = TEXT
>             30.value = #
>             40 = TEXT
>             40.field = uid
>             50 = HTML
>             50.value = ">
>             60 = TEXT
>             60.field = header
>             70 = HTML
>             70.value = </a><br />
>         }
>     }
> </code>
> 
> Hat jemand eine Idee?
> 
> Danke schonmal im Voraus.
> 
> Joerg Schoppet

             <field_related type="array">
                 <tx_templavoila type="array">
                     <title>Related Processes</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>ce</eType>
                     <TypoScript><![CDATA[
	10 = RECORDS
	10 {
		source.current = 1
		tables = tt_content
		conf.tt_content = TEXT
		conf.tt_content {
			typolink {
				parameter.dataWrap = {field:pid}#{field:uid}
				returnLast = url
			}
			dataWrap = <a href="|">{field:header}</a>
		}
	}
							]]></TypoScript>
                 </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>Related Processes</label>
                 </TCEforms>
             </field_related>



More information about the TYPO3-german mailing list