Custom fields in the settings section

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.
5/3/2010 4:02:33 PM
Gravatar
Total Posts 2

Custom fields in the settings section

Good Day, I would like to modify the htmlmodule to implement a script, I know that is just to write the code but this code has a parameters that I would like the user could define into the settings section. for Instance I would like to implement a code that shows certain content for a period of time and the user can define the duration in the settings section. How can I do that?

5/7/2010 7:38:11 AM
Gravatar
Total Posts 35

Re: Custom fields in the settings section

Just create a user setting that is visible and editable by the user.  It will then show up in their Profile.

 

And, you can write some code like this:

 

if (Settings.Contains("MyCustomSetting1"))
{
string mysetting = Settings["MyCustomSetting1"].ToString();
...

...

...

}


 

 

You should be able to find some more exaples if you search the code and the forums/docs.

 

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