[TYPO3-UG Dutch] Dynamische links

ries van Twisk typo3 at rvt.dds.nl
Thu Aug 2 01:44:56 CEST 2007


Hoi Wim,

Ze onderaan deze mail ik gebruikte die om via een IFRAME URL's to laden.
Zoals je ziet gebruik ik de TS om een user functie aan te roepen.
deze functie kan dan variabelen hernoemen.

De link die ik invul is in mijn geval dynamisch, in jouw geval is het  
statisch
dus je zult het beneden staande allemaal als lijdraad moeten nemen.

Ik vul dus in een input form zoiets in: http://link.com? 
uid=###USER_UID###
In jouw geval zal je het iets anders doen (statisch dus) maar de marker
zal je altijd gebruiker


Hier is de functie voor het hernoemen van ###USER_UID###

	function user_replaceUserID($content,$conf) {
		$content = str_replace('###USER_UID###', $GLOBALS["TSFE"]->id ,  
$content);
		return $content;
	}


groet en succes Ries

PS: mocht je toegang hebben tot de andere server (link.com), zou ik  
als ik jouw
was wel UID encrypten en niet gewoon een nummertje oversturen.

Je kun dit ook prima met SSO oplossen, maar is meer complex.

--
Freelance TYPO3 software developer



Data Structure XML:

        <field_iframeurl type="array">
                 <type>attr</type>
                 <tx_templavoila type="array">
                     <title>URL for the IFRAME:</title>
                     <sample_data type="array">
                         <numIndex index="0"></numIndex>
                     </sample_data>
                     <eType>link</eType>
                     <TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
10.postUserFunc = user_replaceUserID
							
</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>URL for the IFRAME:</label>
                 </TCEforms>
             </field_iframeurl>


More information about the TYPO3-UG-dutch mailing list