Sunday, February 7, 2010

Editing Permission Levels Page

More for a personal note, going to the Permissions page takes a few clicks so why not just put /_layouts/role.aspx in place of pages/default.aspx of the home page URL.

http://serversite/_layouts/role.aspx - Gets you to the Permission editing page where you can edit permissions for each Permission Level i.e. add/remove delete permissions, add items permssions, and lots more.

/_layouts/role.aspx  - Permission Levels editing page

Thursday, January 28, 2010

Server relative and page relative URL for images in the Layouts directory

I was recently creating my custom RSS feeds in SharePoint 2007 and i came across an interesting yet simple issue with getting the RSS icon to render correctly. When I first deployed my site with the RSS icon references, I got a blank image instead of my RSS Icon. The issue was, I used page relative URLs instead of server URLs when referencing the RSS image.












The first image uses a page relative URL reference. The second image uses a server relative URL reference.









I just changed my URL reference from page relative to server relative and the RSS image rocked up.

Monday, January 25, 2010

SharePoint 2010 sites house keeping

SharePoint 2010 makes it easier than ever to schedule unused sites to be deleted.

Central Administration -> Application Management -> Confirm site use and deletion


Sites can be scheduled to be deleted after a specified amount of notices have been sent to the site owners.

Clean and neat !

User Profile Service Application : Manage user profiles

In SharePoint 2010, the management and administration of user profiles is no longer done in a Shared Services provider. Using the new User Profile Service Application, you can administer user profiles, schedule the profile synchronisation, configure audiences (for audience targeting), setup My Sites, and manage Organisations.



Back to basics : Site definition and WebTemp file

The basic WebTemp.xml file


The basic Onet.xml file

Create a default.aspx page and you are done !

Sunday, January 24, 2010

Configure service accounts in SharePoint 2010

SharePoint 2010 allows you to configure and change service accounts for Farm, Windows Services, Web Application Pools, and Service Application pool accounts.

This can be done by going to Central Administration. Under Security -> Configure service accounts




Select from the drop down list to pick where you want to change the service account.


Press OK !

Saturday, January 23, 2010

SharePoint 2010 Web Part page layout

The interface to add web parts in SharePoint 2010 has improved dramatically.


This is a standard web part page available in SharePoint 2010

Creating web event receivers in SharePoint 2010

I have just created web event receiver in Visual Studio 2010 and deployed to SharePoint 2010. Visual Studio 2010 makes it very easy to build, develop, and deploy to SharePoint sites.

Inheriting the SPWebEventReceiver, you can create some funky event receivers for multiple web events, i.e. WebProvisioned gets triggered when a site is provisioned/created !


This is the elements file !


No different from creating a event receiver for an item, content type, or list, the process and files required are practically the same :)