Feauture definitions

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.
6/2/2009 10:54:56 AM
Gravatar
Total Posts 12

Feauture definitions

Hi Joe... i was seeing the config feauture definitiond for copntact form... i did not understand the following in it

<featureSetting
resourceFile="ContactFormResources"
resourceKey="ContactFormEmailSetting"
defaultValue=""
controlType="TextBox"
controlSrc=""
helpKey=""
sortOrder="100"
regexValidationExpression=""
/>

 

<featureSetting
resourceFile="ContactFormResources"
resourceKey="ContactFormEditorHeightSetting"
defaultValue="350"
controlType="TextBox"
controlSrc=""
helpKey=""
sortOrder="110"
regexValidationExpression="^[1-9][0-9]{0,4}$"
/>

 

Can you explain this? Thanks in advance....

6/3/2009 5:26:46 AM
Gravatar
Total Posts 18439

Re: Feauture definitions

Hi,

Those files are configuration files used to automate installation and configuration of features by the setup page. Those featureSettings correspond to ModuleSettings.

http://www.mojoportal.com/using-the-installation-system.aspx

http://www.mojoportal.com/modulesettings-adeveloperconvenience.aspx

Hope it helps,

Joe

6/3/2009 6:58:21 AM
Gravatar
Total Posts 12

Re: Feauture definitions

Thanks for the reply joe... i have gone through that but could not understand what these lines do for the contactform module control...

 

<featureSetting
resourceFile="ContactFormResources"
resourceKey="ContactFormEmailSetting"
defaultValue=""
controlType="TextBox"
controlSrc=""
helpKey=""
sortOrder="100"
regexValidationExpression=""
/>

 

In the admin control at the following path

Advanced Tools > Feature Installation/Configuration > Contact Form > Feature Settings

we have ContactFormEmailSetting shown with a key beside it what does that do and also there are a few options in a dropdown  named control type textbox, checkbox etc which we specify  .

 

can you explain these?

6/3/2009 7:12:01 AM
Gravatar
Total Posts 18439

Re: Feauture definitions

That page at  Advanced Tools > Feature Installation/Configuration > Contact Form > Feature Settings is for manually adding feature settings via the UI, when using the installation system you don't need to do anything on that page and should not becuase those settings will be updated according to the config file whenever you visit /Setup/Default.aspx.

That particular setting defines a module Setting aka feature setting for storing an email address. The resourceFile is the name of a resource file but without the extension, so it corresponds to ContactFormResources.resx which lives in the App_GlobalResources folder, the setting name/label will be looked up from the resource file, this way it can be localized by creating resource files for other languages like ContactFormResources.es.resx for Spanish

In this case we have defined a TextBox because the setting is for an email address which contact form messages are sent to. If you put an instance of Contact Form on a page then click the gear icon next to its title you will see the feature instance settings for the contact form instance and you will see the textbox where you can enter an email address.

Hope it helps,

Joe

6/3/2009 7:27:43 AM
Gravatar
Total Posts 12

Re: Feauture definitions

Thanks now i understood it perfectly :) u r genius ....

 

 

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