I have a page class and a subPage class which extends the page-class.
now i want to decorate the page class with a decorater myPageDecorater.
And the sub class with an other decorater mySubPageDecorater.
In _config.php the decoraters are added like that:
DataObject::add_extension('Page', 'myPageDecorater');
DataObject::add_extension('SubPage ', 'mySubPageDecorater');
The Problem is, the second Decorater is not added. No functions of the DecorationClass can be used...
Is there any other way to add a specific decoration on SubPage?
Thanks for you help, Michael