Wednesday, October 9, 2013

SharePoint custom summary links field with rich HTML

http://blog.zebsadiq.com/post/How-to-allow-rich-text-editing-on-summary-link-description-field.aspx
http://msdn.microsoft.com/en-us/library/aa981226%28v=office.12%29.aspx
http://webarj.wordpress.com/2007/05/07/templating-field-controls-in-moss-page-layouts/

http://msdn.microsoft.com/en-us/library/bb861799%28v=office.14%29.aspx

While following steps in the above post I was unable to add using directive for System.Windows.Controls namespace found in PresentationFramework.dll, after searching a little on internet I realized that the dll reference can not be added since I was trying to use 32 bit dll version found in Program Files (x86) directory. Instead when I added dll reference to Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll, the namespace was available.

The sharepoint software factory also has precipices to add custom fields although not one for custom summary links field
http://spsf.codeplex.com/

after installing it I was getting an error "The package SPAM.SPSF could not be activated, the template cannot be unfolded", the reason was I did not activate the SPSF extention as explained here
http://msdn.microsoft.com/en-us/library/ff697223.aspx

Field Definitions
http://msdn.microsoft.com/en-us/library/aa979575.aspx

Finally I used below steps to create a simple field which only saves URL to a custom list
http://bernado-nguyen-hoan.com/2011/11/07/walkthrough-custom-field-type-for-uploading-and-displaying-images-in-sharepoint-2010-lists/

And then added that lists default view webpart to the "View Rendering Template" and "Diplay Rendering Template". The steps to create a list view webpart programmatically are explained in below post,

http://stackoverflow.com/questions/1588019/programmatically-insert-a-list-as-a-webpart-in-a-webpart-page-in-wss-3-0


However I did not use any webpart zone in my control and simply added the webpart to the base.TemplateContainer.Controls collection.

http://msdn.microsoft.com/en-us/library/office/ms543215(v=office.14).aspx

No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...