Learn SharePoint 2010

There is a samll effort towards those people who want to learn the SharePoint 2010. Training Sessions are based on slides.

SharePoint 2010 Training Session 1:

This Session is targeted to those people who doesn’t know about the SharePoint 2010 and their features which this technology is providing. I have tried it to encapsulate all these information in to the slides form. You can download SharePoint 2010 Training Session 1 from here download

SharePoint 2010 Training Session 2:

This session is targeted to those people who want to create Master Pages in SharePoint 2010. You can download SharePoint 2010 Training Session 2 from here download

SharePoint 2010 Training Session 3:

This session is targeted to those people who want to learn about how to deploy SharePoint Solutions, features etc. I think before going to develop sharepoint things we need to know about how to deploy the things in sharepoint so that we can check it what we have developed 🙂 . You can download SharePoint 2010 Training Session 3 from here download

SharePoint 2010 Training Session 4:

In this session i have tried to tell what are the main sharepoint development items, and how to develop it. In this session you can learn what and how to develop SharePoint Site Columns, Content Types, List Definition, List Instance, Features, Features Receivers, and Page Layouts. You can download SharePoint 2010 Training Session 4 from here download

SharePoint 2010 Training Session 5:

In this session i have tried to explore the webparts in the sharepoint. In this session you can learn how many types of web parts are and how we can develop it. You can download SharePoint 2010 Training Session 5 from here download

SharePoint 2010 Training Session 6:

In this session i have tried to explore the site definitions in the sharepoint. In this session you can learn how to develop a site definitions and what are feature stapling how to use feature spaling with sharepoint site definitions. You can download SharePoint 2010 Training Session 6 from here download

SharePoint 2010: Through Feature Create Page with Webpart Placement

I am giving you an idea of creating pages dynamically through feature activation on the site. This will reduce the time and effort of page creation and web part placement on the page by the site administrator / content authors who has the rights to do it.

Why not ….. you will do it programmatically for content authors.

Here is giving you a sample line of code which you have to write in the feature reciever code and deploy this feature on the site where you need it.

 private void CreateMyPage(SPFeatureReceiverProperties properties)
        {
            try
            {
                SPWeb rootWeb = properties.Feature.Parent as SPWeb;

                using (SPWeb web = rootWeb)
                {
                    web.AllowUnsafeUpdates = true;
                    PublishingPage newPage = null;
                    PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web);

                    bool isexist = IsPageExists(publishingWeb, “PageName.aspx”);
                    if (isexist == false)
                    {
                        foreach (PageLayout myPageLayout in publishingWeb.GetAvailablePageLayouts())
                        {
                            if (myLayout.Name.ToLower() == “PageLayoutName.aspx”)
                            {
                                newPage = publishingWeb.GetPublishingPages().Add(“PageName.aspx”, myPageLayout);

                                newPage.Update(); // commit to the database
                                break;
                            }
                        }
                        if (newPage != null)
                        {
                            SPFile file = web.GetFile(newPage.Url);

                            SPListItem item = file.Item;

                            item[“Title”] = “Page Title”;

                            item[“Page Content”] = “Page Description”;

                            SPLimitedWebPartManager wpManager = file.GetLimitedWebPartManager(System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared);
                           
       FirstWebPart firstWebPart = new FirstWebPart();
                            firstWebPart.Title = “First WebPart Title”;
                            wpManager.AddWebPart(firstWebPart, “a_C2B3EE3912F06F8CB7AEECCEAA771992”, 0);

                            SecondWebpart secondWebpart = new SecondWebpart();
                            secondWebpart.Title = “Second Webpart Title”;
                            wpManager.AddWebPart(secondWebpart, “g_C5B3EE3512F84F8CB7AEHCCEAA771992”, 1);

                            item.Update(); // save changes

                            //Check in the Page
                            file.CheckIn(“Created programmatically”);

                            //If you want to auto-approve and publish the page, then you could use the following in addition

                            //file.Approve(“Approved programmatically”);

                            file.Publish(“Published programmatically”);
                        }
                    }
                }
            }
            catch
            {
              
            }
        }

———————————————————————————–

Place this method on FeatureActivated in Feature Reciever Class of Feature.

With this concept you don’t need to embed webparts in the Page Layouts, just do it programmatically through feature.

Hope this will helps you a lot :).

Easy Learning Guide of MOSS 2007

I do hope this presentation will help you as a learning guide for MOSS 2007. Download Presentation from here.

Publish Page Layouts Easily

With this utility you can easily Check-In/Check-Out and Publish page layouts from SharePoint Master Page Gallery. Now you don’t need to check-in/check-out all these page layouts one by one from the GUI.

please rename the extension from “.ppt” to “.zip”. follow the “Note in the attached zip file. Download from here

Windows Workflow Foundation (WWF)

Here is my post on Windows Workflow Foundation. that will definitly help you to understands the windows workflow foundation. Download From Here

MOSS 2007 Presentation

A presentation of MOSS 2007 which will helps you in application development in MOSS 2007. Download Presentation

CRM 3.0 Articles….

Coming Soon with very nice articles……!