[TYPO3-v4] What to do, if you module is incompatible to the cardlayout ; )

Kay Strobach typo3 at kay-strobach.de
Fri Sep 30 12:19:04 CEST 2011


Hi guys,

as i had some very productional discussions with Lorenz.
As conclusion i want to give you some hints about the new cardlayout:

1. as we assume all modules to be compatible cards are added
   automatically
2. extensions can disable the card on module basis to avoid some
   problems

	This was introduced here:
	https://review.typo3.org/#change,3947
	
	The function you need is called:
	t3lib_extMgm::removeModuleContentCard
	and takes the modulename as only paramter
	(e.g. for dam 5 times sth. like txdamM1_file)

The idea of the function in 2. is to deny the autocreation of the card.
The JS in the Backend will detect the missing card and will use the old
style content iframe ;) - that's all the magick.

3. if you want to create a native ExtJS module without any iframe
   please take a look here
   http://wiki.typo3.org/Extension_Development,_native_ExtJS_Modules

4. if you want to change the content of the current card please use:
	top.TYPO3.ModuleMenu.App.openInContentFrame()
   to ensure, that the right card is used ;) - works independet from 2.
5. avoid to set the uri of the iframe directly use jumpTo or similar
   function (see 4.) to be 100% compatible ;)

Hope this information is usefull for somebody ;)

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

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

Answere was usefull: https://flattr.com/profile/kaystrobach


More information about the TYPO3-project-v4 mailing list