Posts

Showing posts from 2017

Add ribbon action and item context menu actions to site content type

Image
I haven't done this for a while and I was searching for it for a while and not getting the correct answer.  So, once I found it, I have to put the information in here just to remind myself later if I have to do it again sometime in the future. Below are functions to add ribbon action and context menu action to Document content type on the site collection level.  The actions requires edit list permission to see. For the ribbon, you'll be passing in the command for the ribbon which looks something like: private static void addRibbonActionToContentType(ClientContext clientContext, ContentType ct, string cmd, string actionName, string actionText)         {             // create the ribbon.             UserCustomAction customAction = clientContext.Site.UserCustomActions.Add();             customAction.Name = actionName;           ...

Easy SharePoint custom form

One of my colleges sent me this link which I find it very useful for all SharePoint versions and environment.  Yes, it is working for Office 365 too. All you need is a little bit of JavaScript skills and concept, then you can implement it.  The best part is that you likely won't have to do any update to the script and it'll just work. I know I'm going to refer to it later.  And here is the link. http://www.markrackley.net/2013/08/29/easy-custom-layouts-for-default-sharepoint-forms/