contao-community-alliance / meta-palettes

Dynamic configured palettes for contao.
6 stars 8 forks source link

Extend subpalettes and subselectpalettes #14

Open dmolineus opened 11 years ago

dmolineus commented 11 years ago

The exending feature of palettes shoulld be posibble for subpalettes and subselectpalettes as well.

tristanlins commented 11 years ago

Can you explain what exactly you mean?

dmolineus commented 11 years ago

I am talking a subpalette which should inherit from another one as described here (http://de.contaowiki.org/MetaPalettes#Paletten_vererben). It should also be possible using the +/- operator for a field.

$GLOBALS['TL_DCA']['tl_table']['subpalette']['foo'] = array('field1');
$GLOBALS['TL_DCA']['tl_table']['subpalette']['bar extends foo'] = array('field2');
$GLOBALS['TL_DCA']['tl_table']['subpalette']['foobar extends bar'] = array('-field1');
tristanlins commented 11 years ago

Ah okay, thx :)