This project is read-only.

Adding setting for a ContentPart

Topics: Writing modules
Jun 12, 2012 at 11: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 12:56 PM

Found similar implementation in AutoRoute settings.

Jun 12, 2012 at 5: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).