21474 Posts in 5781 Topics by 2620 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 158 Views |
-
multiple DataExtensions on one class?

11 March 2013 at 11:18am
Hi, I've a script exteding the main page class
class CustomExtention extends DataExtension { }
+
Object::add_extension('Page', 'CustomExtention ');All good, however, on a site where there is another module already extending the 'Page' class, this 2nd extension doesn't seem to be picked up
Is it only possible to have one dataextension on any one class? If that's true, is there any kind of work around?
-
Re: multiple DataExtensions on one class?

11 March 2013 at 10:41pm
You can have as many extensions on a class as you want. Make sure you have an add_extension() call for each of the extensions. You'll need to flush=1 when you add a new class to get it added to the manifest.
-
Re: multiple DataExtensions on one class?

14 March 2013 at 4:50pm
cool, seems to work now using to add some content into the header...
public function contentcontrollerInit($controller) { }
| 158 Views | ||
|
Page:
1
|
Go to Top |


