Creating a Custom Feature, Adding a Link in Site Actions
1. Go to the C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\Features Location
2. Add a new folder (ex: - MSDownLoads), with in this folder add two xml files with following code.
1. Feature.xml
<?xml version="1.0" encoding="utf-8" ?>
<1. Go to the C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\Features Location
2. Add a new folder (ex: - MSDownLoads), with in this folder add two xml files with following code.
1. Feature.xml
<?xml version="1.0" encoding="utf-8" ?>
Feature xmlns="http://schemas.microsoft.com/sharepoint/"Id="F023AE13-83FE-4E4C-B011-8F0B47026431"Title="My Custom Feature"Description="Mor batch custome feature to download a ms-softwares"Hidden="FALSE"Scope="Web" Version="1.0.0.0"><
ElementManifests><
ElementManifest Location="Elements.xml"/></
ElementManifests>
</
Feature>
2. Elements.xml
<?xml version="1.0" encoding="utf-8" ?><
Elements xmlns="http://schemas.microsoft.com/sharepoint/"><
CustomAction Id="22BC8409-9429-49D2-A629-CB6AB2159A9B"GroupId="SiteActions"Location="Microsoft.SharePoint.StandardMenu"Title="Downloads" Description="MSdownloads"Sequence="12000"><
UrlAction Url="Http://www.microsoft.com"/>
</
CustomAction> </
Elements>
3. Now go to the command prompt change to this location (C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\bin) and install the feature using with STSADM.EXE
Ex: STSADM.EXE -o installfeature -foldername(MSDownLoads)
You will get operation completed successfully
4. Now go to the web application (http://Mohan:8087), click on any sub site, click on Site Actions, Site Settings.
Under Site Actions Section, Click on Manage Site Features, Find
My Custom Feature feature Click on Activate.
Now Click on Site Actions, You will find a Link Downloads, After Site Setting.
No comments:
Post a Comment