As I was working on customizing a SharePoint Calendar, someone asked me if it’s possible to add a Publishing Image Field to a SharePoint Calendar called “Event Image” to display the current event picture. I decided to write this post to explore the options that I have in this case.
Option #1:
I tried to add a new column to the calendar list, but I couldn’t find a column with the Publishing Image type.
PS:
You can add a Hyperlink or Picture Column as shown below, but it has a different behavior in the Add/Edit forms as it doesn’t has a browse dialog to search for image location.
Option #2:
I tried adding an existing Publishing Image Site Column such as Page Image (found in Page Layout Columns) and it works fine but will keep the name of “Page Image” instead of “Event Image”.
Option #3:
The 3rd option is to create a custom content type that inherits form the Event Content Type using Visual Studio 2010 and below are the steps to do so:
To create a SharePoint 2010 content type application solution in Visual Studio 2010
To edit the content type details in the Elements.xml file
To add a field to the Elements.xml file
To deploy the project
The Final Markup should look like this:
Additional References:
Good One.
Nice Post.