To get access to the correct SPSite entity from a webpart use the SPContext.Current where you have access to both the current site and web.
Posted under Developer
This post was written by furuknap on January 6, 2009
To find associated groups in code you can either use the AssociatedGroups collection or access the individual groups as AssociatedOwnerGroup, AssociatedMemberGroup, or AssociatedVisitorGroup of an SPWeb object:
SPGroup owners = this.Web.AssociatedOwnerGroup; SPGroup members = this.Web.AssociatedMemberGroup; SPGroup visitors = this.Web.AssociatedVisitorGroup;
Read more on How do I find associated groups in code…
Posted under Developer
This post was written by furuknap on January 4, 2009
To add a page to SharePoint using the web interface you go to the Create page of the site. Note that prior to adding a page your site must have at least one library to hold the page. On the Create page you go to the Web Pages column and select either the Basic page or the Web part page. Other pages may also be available.
Read more on How do I add a page to SharePoint using the web interface…
Posted under Administration, End user
This post was written by furuknap on January 4, 2009
The only column to which you can add a link on the Create page is the Web Pages column. To add a link there, use a CustomAction feature with Location=”Microsoft.SharePoint.Create” and a GroupId=”WebPages”:
Read more on How do I add a link on the Create page…
Posted under Developer
This post was written by furuknap on January 3, 2009
To create a view through the web interface you need list manager permissions. If you do not have those permissions you may still be able to add a personal view if the list or site is set up to allow adding personal views.
Read more on How do I create a view through the web interface…
Posted under Administration, End user, FAQ
This post was written by furuknap on December 20, 2008
To deploy a workflow in SharePoint you use a feature. The feature should contain an elements file which points to the workflow to deploy. Here is a sample elements.xml file:
<Elements xmlns=”http://schemas.microsoft.com/sharepoint/“>
<Workflow
Name=”Workflow name”
Description=”Workflow description”
Id=”GUID”
CodeBesideClass=”Namespace.Workflowclass”
CodeBesideAssembly=”ProjectName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=publicKeyToken”
StatusUrl=”_layouts/WrkStat.aspx”>
<Categories/>
<MetaData>
</MetaData>
</Workflow>
</Elements>
Read more on How do I deploy a workflow in SharePoint…
Posted under Administration, Developer
This post was written by furuknap on December 12, 2008
You can not apply a new site template to an existing site. The site template is a recipe for how the site and site content should be created, and once that is done, the site is detached from the template. Applying a new site template to a site would be analogous to applying a new architect’s drawing to a house that is already built.
Read more on How do I apply a template to an exsisting site…
Posted under Administration
This post was written by furuknap on December 10, 2008
To deactivate a feature in SharePoint using the web interface, first go to the site settings page, available from the site actions menu. Next, depending on the scope of the feature you either go to the web features or site collection features. The site collection features will only be available if you are at the root site of a site collection.
Read more on How do I deactivate a feature in SharePoint using the web interface…
Posted under Administration
This post was written by furuknap on December 10, 2008
To activate a feature in SharePoint using the web interface, first go to the site settings page, available from the site actions menu.
Posted under Administration
This post was written by furuknap on December 10, 2008
To get the top navigation bar to light up on a page you need to add a top navigation bar link to the page you want highlighted. Add the complete relative URL to the page, for example “/Pages/Lightup.aspx”.
Read more on How do I get the top navigation bar to light up on a page…
Posted under Administration, FAQ
This post was written by furuknap on December 9, 2008