November Happy Hour will be moved to Thursday December 5th.

Setting/modifying property settings through code models?

Vote:
 

Hi,

We have a scenario where we want to be able to configure property settings programmatically through attributes on our code models.

In pagetypebuilder (2.0) this could be acieved by making an attribute that implemented IUpdatePropertySettings. Now for EPi7, I have not found any equivalent of this, is this possible at all?

Also, is there any way of defining more than one setting (or two really, one for the property, and one for the control) for a property? Say I ant to add some settings to all xhtml strings, I can change the propertycontrol through web.config (or programmatically), by registering a new handler for it, like so, but that would remove all tinymce settings:

<add type="EPiServer.Core.PropertyControlClassFactory, EPiServer" id="PropertyControlFactory">
<register type="EPiServer.SpecializedProperties.PropertyXhtmlString, EPiServer"
mappedType="Foo.Bar.BazXhtmlStringControl, Foo.Bar" />
</add>

IS there any way to register myltiple settings for a property, or do i need to modify this by inheriting tinymcesettings and hack the admin custom settings ui using controladapters etc?

#75360
Sep 26, 2013 8:46
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.