Adding setting for a ContentPart

Topics: Writing modules
Jun 12, 2012 at 10:52 AM

I need to add settings to a ContantPart that can be set differently for different ContentTypes.

So for ex: I am creating a Part that will crop images and save them to the file system. This module will save the url for that image in the Record. My requirement is when I am adding this Part to a Content Type I want to be able to specify where the Images are stored to. So this setting is different for each Content Type.



Jun 12, 2012 at 11:56 AM

Found similar implementation in AutoRoute settings.

Jun 12, 2012 at 4:54 PM

Look at the settings of BodyPart (it's in Core/Common/Settings I think). What you want is a TypePartSettings (meaning settings for a part attached to a type).