SharePoint (2003 thru Online): April 2015

Friday, April 24, 2015

Add the Web Part (.CAB Solution File)


Add the Web Part (.CAB Solution File)

Follow these steps to deploy your Web Part to Office SharePoint Server 2007.


Make sure you are logged into the server with the service account which has permissions to install the web parts.


For ease of deployment, copy the GoogleSearch.cab file to the following location, where Office SharePoint Server 2007 is installed:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin

This should be the same as the location of Stsadm.exe. Ensure that you update the path on your computer if it does not match the default location.


Click Start, click Run, and then type cmd /admin.


Type cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin"


Run the following command to deploy your Web Part:

stsadm -o addwppack -filename GoogleSearch.cab -url http://localhost -globalinstall -force

After the command returns with "Operation completed successfully," run the following command:


iisreset /timeout:0


Go to Solution Management, Deploy the solution to required Web Application.
Activate the feature from the Site Actions >> Site Collection Features
____________________________________________________________

Add, Deploy & Activate the Web Part (.wsp Solution File)

stsadm -o addsolution -filename SharePointVideoPlayer.wsp


stsadm -o deploysolution -name SharePointVideoPlayer.wsp -immediate 
-allowgacdeployment -url "[Site Collection URL]"

stsadm -o activatefeature -name SharePointVideoPlayerfeature -url "[Site Collection URL]" –force

Add Web Part Zones to default.aspx


Open the default.aspx page in edit mode, from inside the SharePoint Designer. (You may need to open the "Design" tab in SharePoint Designer.)


Select the lower row of the table.

Then, from the "Table" menu in SharePoint Designer, select "Insert" and then "Row Below".


Click into the row you just created. Add a table with 1 row and 1 column. You can create more rows or columns if needed. From the "Table" menu, select "Insert Table". Use the default parameters (or you can change if needed).


Insert >> SharePoint Controls >> Web Part Zone. Place the cursor in the right place and insert Web Part Zones.


Add the Web Part Zones to all cells needed.


Save the Page. Exit SharePoint Designer.
 View the Page in 'Edit page' mode from the Browser.