Domanda

We have a sharepoint 2013 running utilizing document set homepages as core part of our site.

For example, we have CSWPs on this site which display related items and recommendations under the "normal" document set web parts.

Now we want to adapt the layout to make it more pretty, and we are editing the home page via Sharepoint Designer. The correspoding files are in the _cts folder and usually named docsethomepage.aspx

Since we are changing the template, we are editing in "Advanced Mode", but whenever we save the page, all Content Search Web Parts are broken with an error of

Web Part Error: Unknown server tag. Correlation ID: 93fda89c-d4c0-b0dd-3895-84e9d6acc991.

How can we prevent this from happening? What is the reason that these web parts get broken by Sharepoint Designer?

È stato utile?

Soluzione

For some reason SharePoint Designer changes the tags of those web parts EVERY TIME you open it:

<spsswc:ContentBySearchWebPart>

needs to be changed back to

<WpNs1:ContentBySearchWebPart>

and the closing tags in the same way.

I just don't get how I can prevent this from happening!

Altri suggerimenti

This was very helpful in figuring this out. In my pages the tag was actually WpNs0 not WpNs1 but I had success changing the

<%@ Register TagPrefix="WpNs0"

tag to instead match what SharePoint Designer puts in:

<%@ Register TagPrefix="spsswc"

Hope this helps someone -- what a nightmare SharePoint Designer is -- not tested much before release, and apparently there are no bug fixes either.

Note - this was tested with Office 365 results may be different on-prem

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top