Customizeable custom modules

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/13/2011 6:24:59 PM
Gravatar
Total Posts 5

Customizeable custom modules

Hi, I'm new to mojo so please excuse if I don't use the proper terminology.

When using the default HTML content control one can drop in HTML text.

I would like to create a new custom module that includes the ability for one (my user) to drop in HTML text, but I need to be able to access this HTML via code-behind to set variable data such as titles, list content and images.  Is there any way for the server side (code behind) logic to get access to HTML controls defined in dynamic content such as this?  Or perhaps can you point me to an example that uses multiple dynamic content areas in a module? 

Thanks a bunch in advance.

Stu

btw I assume mojo the dog is the namesake of this project

10/16/2011 3:06:37 PM
Gravatar
Total Posts 18439

Re: Customizeable custom modules

Hi Stu,

You can easily add an Html editor control to your custom feature and then you can access the .Text property of it on postback to get access to the html entered by the user.

The easiest thing would be to look at the code for one or more of the existing features, ie look at the code for the existing Html content feature or the Contact Form. You can see example code there for declaring the editor in the .ascx and configuring it from code behind and accessing the html from the .Text property on the control

The Building a Guestbook video tutorial series also covers use of the editor control.

Yes, my dog mojo was the namesake of the project

Best,

Joe

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