*/
/**
* Demonstrates how to make typolink tags () open in a pop-up window
*
* Example can be found in the testsite package at the page-path "/Intro/TypoScript examples/Small Tricks/Making Pop-up links/"
* This TypoScript configuration will also demonstrate it:
*
* tt_content.text.20.parseFunc.tags.link.typolink.userFunc = user_typoLinkPopUp
* includeLibs.popup = media/scripts/example_typolinkpop.php
* config.setJS_openPic = 1
*
* page = PAGE
* page.10 < styles.content.get
*
* (Plus the "content (default)" static template included as well)
*
* @param array In this case: An array with data you can use for processing; keys "url" and "aTagParams" contains something at least
* @param array TypoScript array with custom properties for this function call.
* @return string Return the new tag
* @see tslib_cObj::typoLink()
*/
function user_typoLinkPopUp($content,$conf) {
$aOnClick = 'openPic(\''.$GLOBALS['TSFE']->baseUrlWrap($content['url']).'\',\'popupwin\',\'width=400,height=500,status=0,menubar=0\'); return false;';
$TAG = '';
return $TAG;
}
?>