- Select List Definition
- click Next; if you get an error "VSeWSS Service Error: No SharePoint Site exists at the specified URL", you can ignore and click OK
- Then enter the URL, next, select the list and finish
- Open the resultant project in Visual Studio 2008 and Build - Package solution.
- Run the generated setup.bat from command line
- You may get an error if the current server does not have the Windows SharePoint Services Web application started, if so start it, and try again.
- Ignore the errors (which you might get if this is a farm with more than one web front end) concerning feature activation as we will deploy and activate next
- Open Solution management in Central Administration and Deploy the new solution (wsp file)
- another option is from the command line using the allcontenturls flag. Note the setup.bat sets the -local flag, which only applies to single server farms. However, you can use the -local flag to deploy to only the local WFE, if global deployment isn't working, e.g. because some WFEs are down.
If you intend to use the -local flag, you will need to edit setup.bat and add the following to the LDeploy section after the deploysolution operation
echo installing feature FeatureName ...
"%SPAdminTool%" -o installfeature -name "FeatureName"
- Now you can activate the lists included with the solution individually from the command line. You can verify that the solution was deployed by checking under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ for the names of your lists
- To activate the list/feature on a given site, do: "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\bin\stsadm.exe" -o activatefeature -id [get the id from the setup.bat file] -url http://urlofyoursite:port
That's it! Now the list is ready to be selected during list creation.
As far as activating the list/feature on all sites, there are some powershell solutions out there, e.g. http://bable.cybermarshall.com/2009/01/17/using-powershell-to-activate-a-feature-across-all-sharepoint-2007wss-30-sites-and-subsites/
(haven't tried it yet)
No comments:
Post a Comment