Archive for February, 2006

Customizing Context Menu in Sharepoint

It’s been a while and I remember there are a number of ways to do this. This is the simple one…

The context menu itself is a JavaScript program and you can found it at \Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS\1033\ows.js

There’s a script that out-of-the-box available to check whether there’s a customization applied.

if (typeof(Custom_AddDocLibMenuItems) != “undefined”)

  {

    if (Custom_AddDocLibMenuItems(m, ctx))

    return;

  }

Enabling Wildcard Search in Sharepoint

This walkthrough will guide  you how to enable wild search using SPS, you need to do the following:

  1. Export the search result web part.
  2. Customize the DWP file, add query to enable the wild search criteria
  3. Import the web part back to SPS and drop it within search page area.

Here are the details:

  1. Go to your search page. By default, you won’t be able to modify it, go to this link to enable the shared mode
    http://nama_server/search.aspx?mode=edit&view=shared
  2. Modify the Shared Page, and export the search result Web Part (just save it in your desktop, by default it has *.dwp extension)