[TYPO3-ttnews] problem with a list in the detail page [solved]

Stefano Cecere scecere at krur.com
Thu Dec 6 08:40:54 CET 2012


On 06/12/12 00:44, Georg Ringer wrote:
> Am 05.12.2012 15:41, schrieb Stefano Cecere:
>> George: maybe wwe shoudl add it to the core of the extesnsion?
>> so if anybody needs two plugs in the same page with different actions...
>
> and if someone needs 3 versions we just do it again and create a 3rd one?
>
> no sorry ;)

i agree

anyway i could easily add Pi2 from a custom extesion with something like:

// pi2 plug for news
Tx_Extbase_Utility_Extension::registerPlugin('news', 'Pi2', 'News: plug 2');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['news_pi2'] 
= 'layout,recursive,select_key,pages';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['news_pi2'] 
= 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue('news_pi2', 
'FILE:EXT:news/Configuration/FlexForms/flexform_news.xml');
//// pi2 plug for news


so , until we can pass namespace within plugin config (as Jigal 
suggested), this can be a simple solution, what do you think?

s



-- 

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

Stefano Cecere
KRUR studio - http://krur.com


More information about the TYPO3-project-tt-news mailing list