Can ModuleSettingsShowTitleLabel setting be overridden?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
4/10/2012 7:36:20 PM
Gravatar
Total Posts 21

Can ModuleSettingsShowTitleLabel setting be overridden?

I'd like to set "Show Title" on HTML modules to be off by default.

I tried creating a feature setting using the following parameters:

Resource File: Resource
Group Name Key: MainSettings
Setting Key (no spaces), use the same key for the label in your Resource file: ModuleSettingsShowTitleLabel
Control Type: Checkbox
Control Source: [blank]
Setting Value: false
Sort Order: 500
Help Key: [blank]
Regex Validation Expression: [blank]

This didn't seem to have any effect though.

Any ideas?

4/12/2012 10:01:23 AM
Gravatar
Total Posts 18439

Re: Can ModuleSettingsShowTitleLabel setting be overridden?

Hi,

Show Title is not a feature specific setting it is part of all features that is why it is on the general tab in module settings and you cannot just add arbitrary settings to existing features.

You can add a setting in user.config like this:

<add key="ShowModuleTitlesByDefault" value="false" />

and that will make the ShowTitle setting be false on newly created instances of all features (not just html) but will not affect existing ones that are already true.

You could update all existing Html content instances to not show the title by using a sql query

UPDATE mp_Modules
Set ShowTitle = 0
Where FeatureGuid ='881e4e00-93e4-444c-b7b0-6672fb55de10'

Hope that helps and thanks for the coffee!

Best,

Joe 

4/12/2012 10:12:47 AM
Gravatar
Total Posts 21

Re: Can ModuleSettingsShowTitleLabel setting be overridden?

Aha. Even better. Thanks and you're welcome!

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