0

So i've got this problem that i'm facing, whenever I'm provisioning my sites some content editor webparts become duplicated while others don't. There isn't any difference between them except... I'm running publishing with a custom pagelayout with 3 zones. Every zone is populated but only one webpart becomes several instances of

0

Add "?contents=1" at the end of the URL of the page, it will open Web Part Page Maintenance page. check whether there are duplicate web parts on the page.

I suppose that there are scripts in the Content Editor web part. When you view the page, the content displayed in this web part gets duplicate.

Instead of just copying and pasting scripts into the Content Editor web part, you should enter the code to a file, store the file in a SharePoint library and then link this file to the Content Editor web part.

Refer to the following blog for more information. This blog has good information though it is for SP 2010.

https://blogs.perficient.com/microsoft/2011/03/javascript-duplicating-generated-html-in-a-content-editor/

Provide some screenshots for checking your issue if the issue still exists.

  • Hi! In ?contents=1 there are multiple instances of that webpart as it generates another one everytime I provision the XML... The HTML file is stored in Style library/HTML and links too a JS file...This is later loaded via the content editor... – Amazinjoey Dec 22 '17 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.