This project is read-only.
Customizing M4W web parts

On feature activation M4W deploys its scripts to /m4w document library on your site collection. Some of these scripts can be customized.

For example you can modify "m4w.htabs.js" to apply your colors, fonts, sizes etc. to" M4W - Horizontal Tabs" web part.

You should not rename m4w methods in the script as it will break the web part rendering. However you can freely change css styles and add your own methods to the script.

Deactivating the feature removes web part from site collection gallery but it does not delete /m4w library. The reason for not deleting the library automatically on feature deactivation is because this library is shared by all M4W web parts to store javascript and other resources. You may also want to customize scripts in M4W library to apply your custom styles to menu4web. Therefore automatic deletion would not be good as it would erase your customizations.

Last edited Jan 1, 2013 at 5:51 PM by sn41, version 3


No comments yet.