Go to the source code of this file.
Functions | |
user_typoLinkPopUp ($content, $conf) | |
Demonstrates how to make typolink tags (<link ...>) open in a pop-up window. |
|
Demonstrates how to make typolink tags (<link ...>) 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.typeNum = 0 page.10 < styles.content.get (Plus the "content (default)" static template included as well)
Definition at line 71 of file example_typolinkpop.php. 00071 { 00072 $aOnClick = 'openPic(\''.$GLOBALS['TSFE']->baseUrlWrap($content['url']).'\',\'popupwin\',\'width=400,height=500,status=0,menubar=0\'); return false;'; 00073 $TAG = '<a href="#" onclick="'.htmlspecialchars($aOnClick).'"'.$content['aTagParams'].'>'; 00074 return $TAG; 00075 }
|