My Solutions in SharePoint,ASP.NET, Sql server, Visual Studio, C#, Java script, CSS and more.
Tuesday, December 21, 2010
Sunday, December 19, 2010
Create a sharepoint feature for deploying Pages in Page library
When ever we create a Share Point feature we require two file i.e., feature.xml and element.xml file.
Element.XML: (define which pages which needs to copy into page library)
Feature.XML: (create a feature for the element.xml file i.e, for the pages to copy in page library)
Properties:
Name: Name of the module where you define the page to copy to the site in Share point mode.
URL: Listing the Document Library where the pages will be added and updated.
RootWebOnly: this property has as its limit the copies of the root page of the Site in SharePoint.
Path: Feature Folder where the page to pass the copy to the Share Point Site.
Scope: The scope defines the context in which the Feature can be activated or deactivated. Setting the scope equal to Web means that the Feature can be activated or deactivated within the context of the site. A setting of Site means that the Feature can be activated or deactivated within the scope of a site collection.
Note: There are also WebApplication and Farm values.
Hope this helps you...
Element.XML: (define which pages which needs to copy into page library)
Name: Name of the module where you define the page to copy to the site in Share point mode.
URL: Listing the Document Library where the pages will be added and updated.
RootWebOnly: this property has as its limit the copies of the root page of the Site in SharePoint.
Path: Feature Folder where the page to pass the copy to the Share Point Site.
Scope: The scope defines the context in which the Feature can be activated or deactivated. Setting the scope equal to Web means that the Feature can be activated or deactivated within the context of the site. A setting of Site means that the Feature can be activated or deactivated within the scope of a site collection.
Note: There are also WebApplication and Farm values.
Hope this helps you...
Subscribe to:
Posts (Atom)