Re: Easiest way to add a CSS class based on page data
OK, so there is no specific widget class that renders the template and it calls back to the AView class and then to the controller.
What is in the skins/default/en/modules/Client/ClientMegaMenu/body.tpl.php file?
How do you display it on the page? Do you use @ListChild tag to add it to a "view list"? If so, I think you should create a new widget class extended from AView, move the @ListChild tag from the template to this class, point the getDefaultTemplate() method to your ClientMegaMenu/body.tpl.php template. This way you can have a new class that renders the template and where you can add your custom methods.
|