View Single Post
  #6  
Old 12-15-2015, 10:08 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote