/ Published in: TYPO3
![](/img/icon_sav.png?v3)
This example adds a link field to every page's 'Extended' properties tab.
The example shows only the 'Page' and 'External URL' options in the link selection GUI. The contents of blindLinkOptions are the fields that will be hidden in the link wizard. Your options for that list are:
* file
* mail
* page
* folder
* url
Similar to blindLinkOptions, you an set an *allowedExtensions* element in the params array, with a comma-separated list of allowed file extensions. By default, all extensions are allowed.
The example shows only the 'Page' and 'External URL' options in the link selection GUI. The contents of blindLinkOptions are the fields that will be hidden in the link wizard. Your options for that list are:
* file
* page
* folder
* url
Similar to blindLinkOptions, you an set an *allowedExtensions* element in the params array, with a comma-separated list of allowed file extensions. By default, all extensions are allowed.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php die ('Access denied.'); } $tempColumns = array ( 'tx_someextension_somecolumn' => array ( 'exclude' => 0, 'label' => 'My Link Field', 'config' => array ( 'type' => 'input', 'size' => '15', 'max' => '255', 'checkbox' => '', 'eval' => 'trim', 'wizards' => array( '_PADDING' => 2, 'link' => array( 'type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard', 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1', 'params' => array( 'blindLinkOptions' => 'file,mail,folder' ) ) ) ) ), ); t3lib_div::loadTCA('pages'); t3lib_extMgm::addTCAcolumns('pages',$tempColumns,1); t3lib_extMgm::addToAllTCAtypes('pages','tx_someextension_somecolumn;;;;1-1-1'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Mobile Counterparts'); ?>
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)