jQuery - best place to add features

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/12/2011 4:42:13 PM
Gravatar
Total Posts 21

jQuery - best place to add features

I'm trying to add some jQuery dropdown menus to my content section. When I build the menus in Visual Studio, everything works great. When I copy the code into an HTML Content feature, it doesn't work right or the CSS isn't completely applied (this isn't a CSS question).

Should I add the html and jQuery somewhere other than an HTML Content section within the CMS? Is this something I should add within a user control and just build into my site, then install as a custom feature?

 

Thanks

10/13/2011 7:38:43 AM
Gravatar
Total Posts 18439

Re: jQuery - best place to add features

Hi,

For simple things you may be able to do it by embedding the javascript in the html, for more complex things you would probably have better success implementing a custom module where you can register custom scripts from code.

Hope that helps,

Joe

10/13/2011 9:08:29 AM
Gravatar
Total Posts 21

Re: jQuery - best place to add features

Thanks Joe!
You must sign in to post in the forums. This thread is closed to new posts.