SIGN UP MEMBER LOGIN:    
ARTICLE

MOSS 2007 Search Customization using Sharepoint designer

Posted by Tariq Younas Articles | C# Tutorials August 11, 2008
This article describes how to customize SharePoint Search using MS Office sharepoint designer.
Reader Level:

In our company we had a requirement to customize employee searching in MOSS 2007. We were asked to show employee information with image in this way

-----------------------------------------------------------
Name: Tariq Younas
Ext:1122, Email:
tariq.younas@gmail.com
Department: CTS, P&L: Intech, Office: Lahore
Designation: Software Engineer
-----------------------------------------------------------

I did some customization of People Search in MOSS 2007 Using Microsoft Office SharePoint designer 2007.

Microsoft Office SharePoint designer is great tool to customization.

Given below is Step by Step Search Customization

Let's start........

1- Click to edit search page

2- Click on Edit XSL Editor and paste the following xml code

<xsl:stylesheet version="1.0"
  xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
 <xsl:template match="/">
  <xmp><xsl:copy-of select="*"/></xmp>
 </xsl:template>
</xsl:stylesheet>

3- Replace the existing XSL markup from the Search Core Results Web Part with the following snippet

4- It will give you raw XML output during search

 

5- Now if you publish the page, you will see a result like the result in the following picture, which illustrates how the raw XML could look: copy it

6- Take a blank text file and paste it with XML extension now it will look like this

7- Open SharePoint designer and click on new aspx page

8- From SharePoint designer menu items click on Data View & insert Data view

9- Now click to add temp.xml and add your XML in SharePoint designer

10- After importing click on XML then there will option to show data

11- On right side pane you will see data

12- Just drag and drop you data fields as per your requirements

13- Click on the split window on aspx page. A XSL code will appear

14- Copy code between two tags to next

15- Edit your search page and paste this code in XSL editor and apply

16- Search like employee name

As I searched tariq younas. Now results will be like this


 
Happy Search Customization

Login to add your contents and source code to this article
share this article :
post comment
 

I have also same requirment. i need full article with code. in above images i not able to read code. so kindly can you share with me. Thanks&Regards, Sreekanth Reddy.

Posted by Sreekanth Reddy May 03, 2011
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Nevron Gauge for SharePoint
Become a Sponsor