DOWNLOAD DEMO
Current Version: 2.3.9.7 2013-04-30
Need a hand? Join the community.

Can ModuleSettingsShowTitleLabel setting be overridden?

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

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 11:01:23 AM
Gravatar
Total Posts 16584

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 11:12:47 AM
Gravatar
Total Posts 4

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.

mojoPortal Hosting Made Easy

Go Mobile with mojoPortal and Mobile Kit Pro!