MCMS gives you the flexibility to customize all aspects of the content creation process—from the moment content is entered into a placeholder to how it stored in the content repository. On top of customizing placeholder controls, you can also create customized versions of placeholder classes and placeholder definitions.
In this chapter, we looked at how a custom placeholder definition/placeholder pair is created. We developed a custom placeholder definition (HtmlStrippingPlaceholderDefinition
) that allows developers to define the tags they wish to keep or remove in the placeholder (HtmlStrippingPlaceholder
).
We went on to register the assembly of the custom placeholder definition with the Global Assembly Cache and added an entry to the Publishing.config
file to make our placeholder definition available in the Placeholder Definition Editor dialog.
Finally, we created a custom placeholder control (HtmlStrippingPlaceholderControl
) that utilizes our custom placeholder definition/placeholder...