[TYPO3-templavoila] LINK in FCE

Joachim Streit jstreit at ditnetwork.de
Fri Apr 27 10:48:32 CEST 2007


Hello,
I want to link a Textfield in TV.
Just what I want exactly:

I build a FCE with:
* one textfield calles Title.
* one Section, Container an a Text field (called Date).

Now I want to create a link on the "Date" with this Linkinformation:
index.php?id=40 (hardcoded!)
&paramone = field_date
&paratwo =  field_title


how I solve this the best way?

This is how I tried it:

<div class="langsemi">Langbeschreibung Seminar</div>
<p>Termine: <br />

<span class="date">Datum:</span> <div class="dates"><a href="#" 
class="dates"> 09.02.</a>
</p>

I mapped: div class="langsemi" and a href as Attribute.

My DS:
<field_semtitle type="array">
				<tx_templavoila type="array">
					<title>Seminar Titel</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>input_h</eType>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>input</type>
						<size>48</size>
						<eval>trim</eval>
					</config>
					<label>Seminar Titel</label>
				</TCEforms>
			</field_semtitle>

 >8----------8<

<field_semdate type="array">
				<type>array</type>
				<section>1</section>
				<tx_templavoila type="array">
					<title>Seminar Datum</title>
					<eType>input</eType>
				</tx_templavoila>
				<el type="array">
					<field_semdatelink type="array">
						<tx_templavoila type="array">
							<title>Datum </title>
							<eType>input</eType>
						</tx_templavoila>
						<TCEforms type="array">
							<config type="array">
								<type>input</type>
								<size>48</size>
								<eval>trim</eval>
							</config>
							<label>Datum </label>
						</TCEforms>
						<type>array</type>
						<el type="array">
							<field_datesem type="array">
								<tx_templavoila type="array">
									<title>Datum: </title>
									<sample_data type="array">
										<numIndex index="0"></numIndex>
									</sample_data>
									<eType>input</eType>

<TypoScript>
<![CDATA[
10 = COA
{
   10 = TEXT
   10 {
      if.isTrue.field = field_datesem
      wrap = <a href="index.php?id=40|
    }


  30 = TEXT
     30 {
	 if.isTrue.field = field_datesem
       field = field_datesem
       wrap = &semidate=|
      }

   40 = TEXT
     40 {
	 if.isTrue.field = field_datesem
       field = field_semreferent
       wrap = &referent=|
      }

   90 = TEXT
   90 {
     if.isTrue.field = field_datesem
     field = field_datesem
     wrap = >|</a>
   }
]]>

	  	</TypoScript>		
									<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>Datum: </label>
								</TCEforms>
								<type>attr</type>
							</field_datesem>
						</el>
					</field_semdatelink>



Thankx for any hints ...

Joachim


More information about the TYPO3-project-templavoila mailing list