[TYPO3-templavoila] SOLUTION: How to create a tt_content LINK in FCE?

Joerg Schoppet joerg at schoppet.de
Mon Sep 18 15:28:08 CEST 2006


Dmitry Dulepov wrote:
> Hi!
> 
> Joerg Schoppet wrote:
>> But then all the content-elements I've selected are directly displayed.
>> I only want to have a link to the Content-Element with the header?
>> e.g. <a href="http://www.test.de/test/index.html#a123">Content Header</a>
>  >
>  > How can I achieve this?
> 
> Something like:
> 
> 10 = CONTENT
> 10 {
>     table = tt_content
>     select {
>         pidInList.current = 1
>         selectFields = uid,header
>         orderBy = sorting
>     }
>     renderObj = TEXT
>     renderObj.value = <a 
> href="http://www.test.de/test/index.html#a{field:uid}>{field:header}</a>
>     renderObj.insertData = 1
> }
> 
> Not really tv question...
> 

Sorry, I thought FCE has something in common with templavoila, but OK ...

here is my solution:
<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
		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>
</code>

Joerg



More information about the TYPO3-project-templavoila mailing list