I came across this problem on a web application that had been working fine, then all of a sudden the “Target Audiences” property disappeared from the web part tool pane. To solve this problem I re-associated the web application with the Shared Service Provider (SSP) and bounced IIS. 1. Web applications are associated with [...]
Posts Tagged ‘webpart’
Target Audience property not displaying / missing for web parts
Posted in bugs, sharepoint, tagged audiencefilters, bug, sharepoint, targetaudience, webpart on December 3, 2009 | 1 Comment »
SPLimitedWebPartManager.SaveChanges throws Microsoft.SharePoint.WebPartPages.WebPartPageUserException: The file is not checked out.
Posted in sharepoint, tagged provisioning, sharepoint, webpart, webpartmanager on November 29, 2009 | 5 Comments »
Got stuck on this one for a long time, more than an hour Microsoft.SharePoint.WebPartPages.WebPartPageUserException: The file is not checked out. You must first check out this document before making changes. at Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesCore(SPLayoutProperties layoutProperties, Boolean httpGet, Boolean saveCompressed, Boolean skipRightsCheck, Guid& newTypeId, Byte[]& newAllUsersProperties, Byte[]& newPerUserProperties, String[]& newLinks) at Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesCore(SPLayoutProperties layoutProperties, Boolean httpGet, Boolean saveCompressed, Boolean [...]
Provisioning a Web Part with a predefined ID in your onet.xml of element manifest.
Posted in sharepoint, tagged onet.xml, provisioning, sharepoint, webpart on November 29, 2009 | Leave a Comment »
From time to time you might want to provision your WebParts using the CAML markup and then modify them in a feature later on. Most examples on the web find the webpart based on it’s title. i.e. However you can specify the ID of a web part in your onet.xml / element manifest like so: [...]
How to add an image web part / ImageWebPart part via your onet.xml or elements manifest
Posted in sharepoint, tagged ImageWebPart, onet.xml, sharepoint, webpart on November 16, 2009 | Leave a Comment »
Properties of note: ImageLinkUrl to image, can be relative. Note tokens are supported in this xml element, i.e. ~SiteCollections/SiteCollectionImages/logo.gif
How to add a content editor web / ContentEditorWebPart part via your onet.xml or elements manifest
Posted in sharepoint, tagged ContentEditorWebPart, onet.xml, sharepoint, webpart on November 16, 2009 | Leave a Comment »
The important part here is to remember to html encode the Content element. You can encode html online using this handy website: http://www.opinionatedgeek.com/dotnet/tools/htmlencode/Encode.aspx