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 SahuCommented Jan 6, 2017 at 11:51
-
Yes I Can. Share the code– Mohamed ArifCommented Jan 9, 2017 at 5:36
-
sharepoint.stackexchange.com/questions/86026/…– Sunil SahuCommented Jan 9, 2017 at 7:52
-
Above reference link for adding webpart in zone and getting the page layout.– Sunil SahuCommented Jan 9, 2017 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?– nsturdivantCommented Jan 12, 2017 at 5:07
|
Show 1 more comment