Sunday, October 20, 2013

Common Element types used in Feature Definition


Listing common elementypes that are used in feature definition

Element Type                   Description
PropertyBag                   Adds name-value properties to a feature
ListInstance                   Creates a list instance
CustomActionGroup         Creates a new section for links
CustomAction                Creates a new link or menu command
HideCustomAction           Hides a built-in or custom link or menu command
Module                           Provisions a file from a template file
Field                               Creates a site column
ContentType                   Creates a content type
ContentTypeBinding        Adds a content type to a list
ListTemplate                   Creates a custom list type
Control                           Creates a delegate control
Workflow                       Creates a workflow template
WorkflowActions           Creates declarative workflows
WorkflowAssociation     Associates a workflow template with a list
FeatureSiteTemplateAssociation    Staples a second feature to a site template to support auto-activation

Controlling View access for SharePoint developer dashboard and How vo make it visible to anonymous users


For enabling dashboard through code use

            SPDeveloperDashboardSettings settings =
     SPWebService.ContentService.DeveloperDashboardSettings;
     settings.DisplayLevel = SPDeveloperDashboardLevel.OnDemand; // ON or OFF 
     Settings.TraceEnabled = true;
     settings.Update();

for controlling access use

            SPDeveloperDashboardSettings settings =
                           SPWebService.ContentService.DeveloperDashboardSettings;
            settings.DisplayLevel = SPDeveloperDashboardLevel.On;
            settings.RequiredPermissions = SPBasePermissions.EmptyMask;//you can select any permission level here as required
            Settings.TraceEnabled = true;
            settings.Update();

Which one is WFE server in SharePoint Farm or How to make a sever run as WFE in farm ?

Any server that has the Microsoft SharePoint Foundation Web Application service started (on Services on Server page) is considered a Web Front End Server.