Difference between revisions of "MOSS 2007"

From Richard's Wiki
Jump to: navigation, search
(SharePoint 2010 Resources)
(SharePoint 2010 & Silverlight)
Line 57: Line 57:
 
* [http://www.sharepointkings.com/2009/07/understanding-and-working-with-web-part.html Modify WebPart menu (Understanding and working with Web Part Verbs)]
 
* [http://www.sharepointkings.com/2009/07/understanding-and-working-with-web-part.html Modify WebPart menu (Understanding and working with Web Part Verbs)]
 
* [http://praveenbattula.blogspot.com/2010/03/sharepoint-2010-silverlight-client.html SharePoint 2010 Silverlight Client Object Model - How to use]
 
* [http://praveenbattula.blogspot.com/2010/03/sharepoint-2010-silverlight-client.html SharePoint 2010 Silverlight Client Object Model - How to use]
 +
** [http://blah.winsmarts.com/2009-12-ClientContextCurrent_is_null_in_Silverlight.aspx In Silverlight, ClientContext.Current is null - how to fix it]. In your Silverlight Object Tag, add the following:
 +
<code>
 +
  "<param name=\"initParams\" value=\"MS.SP.url=" + SPContext.Current.Site.Url + "\" />"
 +
</code>
 +
 
* Turn on the Developer Dashboard by running the following stsadm command:
 
* Turn on the Developer Dashboard by running the following stsadm command:
 
<code>
 
<code>

Revision as of 19:36, 8 April 2010

Some MOSS Resources

MOSS & Silverlight

SharePoint 2010 Resources

SharePoint 2010 Snippets

[System.Web.UI.WebControls.WebParts.WebBrowsable(true)]
[System.Web.UI.WebControls.WebParts.WebDisplayName("Custom Property")]
[System.Web.UI.WebControls.WebParts.WebDescription("A test Custom property.")]
[System.Web.UI.WebControls.WebParts.Personalizable(PersonalizationScope.User)]
[System.ComponentModel.Category("Settings")]
[System.ComponentModel.DefaultValue("Default String Value")]
public string CustomProp { get; set; }

SharePoint 2010 & Silverlight

 "<param name=\"initParams\" value=\"MS.SP.url=" + SPContext.Current.Site.Url + "\" />"

  • Turn on the Developer Dashboard by running the following stsadm command:

stsadm -o setproperty -pn developer-dashboard -pv OnDemand

  • In VS2010, can make the following changes to
    • Elements.xml: change the
      <Property Name="Group" Value="Custom" />
      to something other than Custom.
    • Webpart.webpart (webPartIcon is 16x16):
  <property name="ChromeType" type="chrometype">TitleAndBorder</property>
  <property name="CatalogIconImageUrl" type="string">_layouts/images/ContosoWebParts/WebPartIcon.gif</property>
  <property name="TitleIconImageUrl" type="string">_layouts/images/ContosoWebParts/WebPartIcon.gif</property>
    • Elements.xml, modify the URL attribute of File element to change the .webpart file name to ensure that it is unique. Do this by prepending the text value of "ContosoWebParts_" (ie Feature project name) to the beginning of the URL property value.