Customization does not stop at placeholder controls. You can change the way content is defined, stored, and retrieved by creating your own custom placeholder and placeholder definition classes.
We explored the placeholder definitions that ship with MCMS in Chapter 7 and saw how they are used to provide a set of rules to constrain the format of content that gets saved to the content repository. For example, the Formatting
property of the HtmlPlaceholderDefinition
can be set to NoFormatting
to ensure that the content does not contain any block or in-line HTML tags.
Every placeholder definition has a corresponding placeholder class so, when creating your own placeholder definition, you must build a placeholder class to pair with it. A placeholder object based on this class provides a logical representation of the content and is used within code to retrieve/save data in the MCMS repository. An example of this is the standard...