Using jQuery to Wrap Web Parts and Achieve the Unachievable: The Packaged Solution (EUSP)

Guest Author: Brandon Anderson

BrandonAnderson[1] Introduction
During the course of a customization and branding effort in SharePoint you are likely to find that you want to style web parts to look different from (Dare I say better than?) the stylistic treatment default to SharePoint.

In my quest for finding a way to improve the look of web parts, I discovered Microsoft’s markup for web parts does not allow for much web part style manipulation, as there are not enough CSS hooks.  Nor could I modify the HTML inside a web part zone in order to wrap web parts with <div> tags for styling purposes—you can’t edit the contents of web part zone directly.  So I had to settle with wrapping <div> tags with classes around web part zones, which got me where I wanted to go somewhat, but it failed to allow me to apply treatments like background colors, borders, rounded corners, and drop shadows to individual web parts—I could only apply them to the wrapper around the web part zone.

So I wrote some jQuery to inject into the DOM <div> tags and classes for web parts that I could then use as hooks in my CSS.

View full article on EndUserSharePoint.com

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Real World Project: Transparent Overlays for SharePoint Interface Enhancement (EUSP)

Introduction

I have a client that wanted to convert their outdated HTML district website to an external facing SharePoint portal. The client was brand new to SharePoint and brought me in to build an external facing portal using MOSS 2007 Enterprise. After setting up the new farm it was time to brand the site and create content. The one thing I had the client do before I started branding the site was have them send me references to sites they liked along with a list of elements they liked about the sites.

Read the full Article on EndUserSharePoint.com

 

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
SharePoint 2007 Developer's Guide to Business Data Catalog

You can now order Brett Lonsdale's book "SharePoint 2007 Developer's Guide to Business Data Catalog" through the Manning Early Access Program at http://www.manning.com/lonsdale

This book is definitely a must have for all SharePoint Developers.

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Changing the Magnifying Glass on the Search Box

On a publishing template if you want to change the behavior of the search arrow changing to the magnifying glass in the search box you need to set the following two properties on the control to the same image:

  • GoImageActiveURL
  • GoImageActiveURLRTL

<SPSWC:SearchBoxEx id="SearchBox" RegisterStyles="false" TextBeforeDropDown="" TextBeforeTextBox="" TextBoxWidth="100" GoImageUrl="<% $SPUrl:~sitecollection/Style Library/Images/ETS/btn_search_off.gif %>" GoImageUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/ETS/btn_search_off.gif %>" GoImageActiveURL="<% $SPUrl:~sitecollection/Style Library/Images/ETS/btn_search_on.gif %>" GoImageActiveURLRTL="<% $SPUrl:~sitecollection/Style Library/Images/ETS/btn_search_on.gif %>" UseSiteDefaults="true" DropDownMode = "HideScopeDD" SuppressWebPartChrome="true" runat="server" WebPart="true" __WebPartId="{51B67B10-6233-40AD-8C91-DFFFAFFFF604}"/>

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Microsoft Silverlight Streaming Free 10GB Service

Microsoft® Silverlight™ Streaming by Windows Live™ is a companion service for Silverlight that makes it easier for developers and designers to deliver and scale rich media as part of their Silverlight applications. The service offers web designers and developers a free (*) and convenient solution for hosting and streaming cross-platform, cross-browser media experiences and rich interactive applications that run on Windows™ and Mac. Combined with the ability to create content with Microsoft® Expression and other 3rd party tools, web designers and content publishers wishing to integrate Silverlight applications into their online properties can enjoy complete control of the end user experience.

 http://silverlight.live.com/

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Adding Custom Fields to the Content Query Web Part
  1. Add a Content Query Web Part to your SharePoint page
  2. Export the added Content Query Web Part
  3. In the .webpart file locate the CommonViewFields property and use this property to specify the additonal fields you want to display in the Web Part.

    <property name="CommonViewFields" type="string">ArticleStartDate,DateTime;</property>

  4. Save the .webpart file
  5. Import the .webpart file to SharePoint and add the Web Part to your page.
  6. Edit the ItemStyle.xsl template you are using to display your custom field.

    <xsl:value-of select="ddwrt:FormatDateTime(string(@ArticleStartDate) ,1033 ,'MMMM dd, yyyy ')"/>

Note: In order to use the ddwrt:FormatDateTime you must add "xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" to your template.

<xsl:template name="DisplayTitleDate" match="Row[@Style=DisplayTitleDate]" mode="itemstyle" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Download Zipped List Items Feature Released

This Custom UI Actions for Sharepoint extends the lists action menu to allow users to zip document library items and download all of them either with or without versions.

Features

  • Download all document library items
  • Keep the folder hierarchy
  • Versions: if you are caring about document versions you can download them as well
  • Ability to download only the selected view items instead of all list items

You can download this feature from http://www.codeplex.com/MZakiCustomActions/

 

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Content Query Web Parts and Anonymous Access

If you have your site enabled for anonymous access and you use Content Query Web Parts (CQWP) when an anonymous user clicks on the links they end up with a "403" forbidden error. As it turns out the CQWP has all links go through the CopyUtil.aspx page instead of linking to the item directly. This page without customization, does not support anonymous access however there are two different workarounds to fix this problem.

Workaround:

1) Override the ContentQuery (ContentQueryMain.xsl) Web Part's XSLT to use "DispForm.aspx" instead of "CopyUtil.aspx".

        <xsl:if test="$UseCopyUtil = 'True'">
            <xsl:value-of select="concat('/_layouts/dispform.aspx?Use=id&amp;Action=dispform&amp;ItemId=',@ID,'&amp;ListId=',@ListId,'&amp;WebId=',
            @WebId,'&amp;SiteId=',$SiteId)"/>
        </xsl:if>

2) Or you can create a custom CopyUtil.aspx page and override the AllowAnonymous property.

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
SharePoint Meeting Minutes - g_instanceID is not defined

I ran into a problem after I re-inherited a custom master page through an entire MOSS website. After I did this, all the Meeting Minutes workspaces would give a
"g_instanceID is not defined" javascript error.
As it turns out, Meeting Workspaces use a different master page called mwsdefault.master, found in the TEMPLATE\GLOBAL directory in the 12 hive.

To fix this problem in your custom master page you need to:

1. Copy the register Microsoft.SharePoint.Meetings tag prefix from the mwsdefault.master and add it to your custom master page.

<%@ Register Tagprefix="Meetings" Namespace="Microsoft.SharePoint.Meetings" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

2. Then copy the Meetings:PropertyBag control into your custom master page.

<Meetings:PropertyBag runat="server"/>

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks