I want to add the web part that is available in Web Part Gallery to the publishing page layout using CSOM or JSOM.
-
Can you use server object model? – Sunil Sahu Jan 6 '17 at 11:51
-
Yes I Can. Share the code – Mohamed Arif Jan 9 '17 at 5:36
-
sharepoint.stackexchange.com/questions/86026/… – Sunil Sahu Jan 9 '17 at 7:52
-
Above reference link for adding webpart in zone and getting the page layout. – Sunil Sahu Jan 9 '17 at 7:54
-
Your question mentions adding a web part "...to the Page Layout..." which isn't the same as creating a page using a page layout and then adding a web part into a web part zone on that page. Are you looking to add a web part to a page layout (as a "default" web part, present when the layout is applied to a publishing page) or are you looking to drop a web part onto an existing publishing page? – nsturdivant Jan 12 '17 at 5:07