Simple mojoPortal Control

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.
1/11/2012 9:33:19 AM
Gravatar
Total Posts 18439

Re: Simple mojoPortal Control

correct, if you don't care about automated installation or localization you can just use the UI to configure your feature and settings just put Resource for the resource file from the UI and then hard code your own labels and buttons internally to your control. Though if you have any settings the settings page will look first in our resource file for your key, and if not found it will just use the actual text of your resource key.

Hope that helps,

Joe

1/11/2012 10:31:58 AM
Gravatar
Total Posts 148

Re: Simple mojoPortal Control

Hi:

If I change the "Settings Value" through  Administration->Advanced Tools->Feature Installation->Settings , the next time I install my control on a page, this new value will show. However, I don't have a "Settings" link next to my control so I can change the "Settings Value" for a control that has already been installed on a page.

1/11/2012 11:33:48 AM
Gravatar
Total Posts 148

Re: Simple mojoPortal Control

Hi:

OK, so a Feature Settings config file is not required, how about a Resource file?

1/11/2012 11:58:07 AM
Gravatar
Total Posts 2253

Re: Simple mojoPortal Control

No, the resource file is not needed. 

As far as the Settings link not appearing for an instance of your feature that you placed prior to creating the settings, I think you may have accidentally changed the feature guid after setting up that first instance. Try deleting that original instance and then add the feature back to the page.

HTH,
Joe D. 

1/11/2012 12:05:42 PM
Gravatar
Total Posts 148

Re: Simple mojoPortal Control

Hi:

If I edit the page the control is on and click on my control under "Center Pane" and select the wrench icon, I see my control settings page but if I try to change the value, I get the error,

Could not find any resources appropriate for the specified culture or the neutral culture.

1/11/2012 12:10:23 PM
Gravatar
Total Posts 18439

Re: Simple mojoPortal Control

I said previously to put Resource for the resource file name if you are not using one of your own. It will look in our resource file and if it does not find a key matching yours it will just use the key itself as the label.

You might want to look at how your ModuleTitleControl is declared if it is not showing the settings link.

1/12/2012 7:01:29 AM
Gravatar
Total Posts 18439

Re: Simple mojoPortal Control

Thanks for the beer! Much appreciated.

Cheers,

Joe

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