1

I want to add the web part that is available in Web Part Gallery to the publishing page layout using CSOM or JSOM.

6
  • Can you use server object model?
    – Sunil Sahu
    Commented Jan 6, 2017 at 11:51
  • Yes I Can. Share the code Commented Jan 9, 2017 at 5:36
  • Above reference link for adding webpart in zone and getting the page layout.
    – Sunil Sahu
    Commented 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? Commented Jan 12, 2017 at 5:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.