[TYPO3-dev] Need a hint, wizard related

Kay Strobach typo3 at kay-strobach.de
Thu Apr 26 15:50:00 CEST 2012


Hi guys,

i try to fix http://forge.typo3.org/issues/18595 within an extension.


That's simply done, once you made it unclean:

-------------------------------------------------------------------

t3lib_div::loadTCA('tt_content');

$TCA['tt_content']['columns']['select_key']['config']['wizards']['tx_wizards_uploads_path']
= array(
	'type' => 'popup',
	'enableByTypeConfig' => 0,
	'title' => 'Link',
	'icon' => 'link_popup.gif',
	'script' => 'browse_links.php?mode=wizard&act=folder',
	'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
	'params' => array (
		'blindLinkOptions' => 'page,mail,url,file'
	)
);

-------------------------------------------------------------------

The clean way is to set 'enableByTypeConfig' => 1, to ensure, that the
wizard is just shown, if the CType = uploads :(

-------------------------------------------------------------------

t3lib_div::loadTCA('tt_content');

$TCA['tt_content']['columns']['select_key']['config']['wizards']['tx_wizards_uploads_path']
= array(
	'type' => 'popup',
	'enableByTypeConfig' => 1,
	'title' => 'Link',
	'icon' => 'link_popup.gif',
	'script' => 'browse_links.php?mode=wizard&act=folder',
	'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
	'params' => array (
		'blindLinkOptions' => 'page,mail,url,file'
	)
);


$TCA['tt_content']['palettes']['uploads']['showitem'] = str_replace(
	'select_key;LLL:EXT:cms/locallang_ttc.xml:select_key.ALT.uploads_formlabel',
	'select_key;LLL:EXT:cms/locallang_ttc.xml:select_key.ALT.uploads_formlabel;;wizards[tx_wizards_uploads_path]',
	$TCA['tt_content']['palettes']['uploads']['showitem']
);

-------------------------------------------------------------------

So what's the correct way to add the wizard in the pallette?

	wizards[tx_wizards_uploads_path]

Regards
Kay

-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful: https://flattr.com/profile/kaystrobach



More information about the TYPO3-dev mailing list