View Single Post
  #2  
Old 08-20-2014, 09:06 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Overriding a skin module with my DropDown Module

I would decorate the TopCategories class and make it display the drop-down list instead of the regular one.

Actually, it can render the drop-down menu already, but is missing necessary CSS files.

So, what you need to make it drop down:

1. Decorate the TopCategories class in your module.

2. In the defineWindgetParams() methods, after executing the parent one, change the value of the static::PARAM_DISPLAY_MODE widget parameter to static:: DISPLAY_MODE_TREE.

3. Add necessary styles through the getCSSFiles() method.
__________________
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

Last edited by qualiteam : 08-20-2014 at 09:08 PM.
Reply With Quote