Posts Tagged “default values”

Using Event Receiver to Set Default Values for Publishing Pages

March 29 2010 17 comments

While ago I posted something very similar to this. Here

Here’s yet another solution, and way better and faster to implement.
First create web scoped feature, that adds ItemAdded event receiver to Pages library (should’t be a task). In the ItemAdded method, set the default values which are defined in the ContentType, to each field in the…

Read more »

Using Control Adapter to Set Default Values for Publishing Pages

February 24 2010 91 comments

Developers, who use customized page layouts bound with custom content type, have probably realized that if your custom content type is not the default content type of Pages library, you will not get default values populated when you create a new page. One way to work around this is to create feature, which sets your customized content type to be…

Read more »