Wednesday, December 24, 2008

Custom WorkFlow deployement in Visual Studio 2008

If you’re using Visual Studio 2008 the workflow will have been automatically deployed to the site collection you specified as the development site when you first created the workflow project. However should you need to deploy the workflow to a different server or site collection then these are the steps that you’ll need.

The following steps will deploy your workflow to a site collection.

1. Copy the DLL your workflow creates from the build directory (\bin\Debug) to the Global Assembly Cache (GAC)

2. Create a directory in the features directory [C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\FEATURES] and drop both the feature.xml and workflow.xml files into the directory.

3. Install the feature on your farm, using the following command line statements

stsadm -o installfeature -name DocumentMoveAndShortcut

Figure 18 - Install the feature

4. Activate the feature to a site collection

stsadm -o activatefeature –name DocumentMoveAndShortcut -url http://moss2007win2008

Figure 19 - Activate the feature

NOTE: You can usually find the STSADM command in the directory C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\BIN

Sunday, December 14, 2008

Sharepoint Workflow

seful information about sharepoint workflows

http://www.cmswire.com/cms/web-cms/web-content-management-with-sharepoint-moss-2007-part-2-workflow-002021.php


http://www.u2u.info/Blogs/Kevin/Lists/Posts/Post.aspx?ID=39

SharePoint 2007 Workflow with Visual Studio 2005
http://weblog.vb-tech.com/nick/archive/2006/09/04/1753.aspx

Visual Studio 2005 extensions for .NET Framework 3.0 (Windows Workflow Foundation)
http://www.microsoft.com/downloads/thankyou.aspx?familyId=5d61409e-1fa3-48cf-8023-e8f38e709ba6&displayLang=en

How to: Deploy a Workflow Template
http://msdn.microsoft.com/en-us/library/ms460303.aspx

Wrangling SharePoint Workflows with Visual Studio http://www.devx.com/webdev/Article/34032/1954

Developing Sequential Workflows for SharePoint Server 2007 Using Visual Studio 2008http://msdn.microsoft.com/en-us/library/cc811589.aspx

Beginners Guide to SharePoint 2007 Workflow Development - Create an InfoPath Web-Based Form
http://www.sharepointbuzz.com/2008/11/07/beginners-guide-to-sharepoint-2007-workflow-development-create-an-infopath-web-based-form/

SharePoint 2007 Workflow with Visual Studio 2005 + InfoPath 2007 (RTM VERSION!)
http://weblog.vb-tech.com/nick/archive/2007/02/25/2207.aspx

Thursday, December 11, 2008

Show/Hide View All Site Content link in Sharepoint based on permissions

If you want to show/hide the View All Site Content link in SharePoint based on the user permissions.

connect your site to Sharepoint Designer (Daniel may be right about WSS 3.0), then navigate to _Catalogs >> masterpage >> default.master

Next find the PlaceHolderLeftNavBar content place holder and you can use the Sharepoint:SPSecurityTrimmedControl to hide a link (See example below on how to hide the "View All Site Content Link")

<asp:contentplaceholder id="PlaceHolderLeftNavBar" runat="server">
<div class="ms-quicklaunchouter">
<div class="ms-quickLaunch">
<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ManageLists, ManageSubwebs">
<div class="ms-quicklaunchheader">
<SharePoint:SPLinkButton id="idNavLinkViewAll" runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" Text="<%$Resources:wss,quiklnch_allcontent%>" />
</div>
</SharePoint:SPSecurityTrimmedControl>
.......


You will see the PermissionString = ManageLists, ManageSubwebs which will hide this link to everyone except the Site Owner.

The PermissionsString attribute defines the permissions the user must have in order to view the content. See SPBasePermissions enumeration for a listing of possible values.


http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx

DHTML ToolTips

The below site is a good site for creating DHTML tooltips for cross browsers.

Download the javascript files from the site, and add them to your site, and customize your tooltips.

Enjoy!!

http://www.walterzorn.com/tooltip/tooltip_e.htm

Tuesday, December 02, 2008