Skip to main content
added 64 characters in body
Source Link
dzookatz
  • 516
  • 4
  • 16

This tutorial is about how to customize search results.

There are three topics:

  1. Customization to highlight search keyword
  2. Customization to open Search result items in new window
  3. Customize People Search result

I think you can find what you are looking for in topic No. 2 or at least an idea on how to do it. For instance, you can edit the links - lines that create item url for Icon, Title and URL of search result.

EDIT:

Taken from the site, Topic No. 2:

  1. Go to SharePoint site
  2. Perform a search on site
  3. Search result page will open.
  4. On this page go to Edit page option.
  5. On search core results webpart click on edit webpart option
  6. In webpart properties, Click on the XSL Editor Button
  7. Take backup of XSLT file before modification.
  8. Now copy XSLT and open it in text pad

Search for the lines:

<span class=”srch-Icon”>
<a href=”{$url}” id=”{concat(‘CSR_IMG_’,$id)}” title=”{$url}”>
<span class=”srch-Title”>
<a href=”{$url}” id=”{concat(‘CSR_’,$id)}” title=”{$url}”>
<span class=”srch-URL”>
<a href=”{$url}” id=”{concat(‘CSR_U_’,$id)}” title=”{$url}” dir=”ltr”>

Above lines create item url for Icon, Title and URL of search result. In current state these will open items on search result page. Now weIf you want to open the link to open in a new window. To achieve this we, you will add on target=”_blank”a target=”_blank” at the end of href tag. Now update Webpart XSLT with these modifications and exit from editable mode.

This tutorial is about how to customize search results.

There are three topics:

  1. Customization to highlight search keyword
  2. Customization to open Search result items in new window
  3. Customize People Search result

I think you can find what you are looking for in topic No. 2 or at least an idea on how to do it. For instance, you can edit the links - lines that create item url for Icon, Title and URL of search result.

EDIT:

Taken from the site, Topic No. 2:

  1. Go to SharePoint site
  2. Perform a search on site
  3. Search result page will open.
  4. On this page go to Edit page option.
  5. On search core results webpart click on edit webpart option
  6. In webpart properties, Click on the XSL Editor Button
  7. Take backup of XSLT file before modification.
  8. Now copy XSLT and open it in text pad

Search for the lines:

<span class=”srch-Icon”>
<a href=”{$url}” id=”{concat(‘CSR_IMG_’,$id)}” title=”{$url}”>
<span class=”srch-Title”>
<a href=”{$url}” id=”{concat(‘CSR_’,$id)}” title=”{$url}”>
<span class=”srch-URL”>
<a href=”{$url}” id=”{concat(‘CSR_U_’,$id)}” title=”{$url}” dir=”ltr”>

Above lines create item url for Icon, Title and URL of search result. In current state these will open items on search result page. Now we want to open the link open in a new window. To achieve this we will add on target=”_blank” at the end of href tag.

This tutorial is about how to customize search results.

There are three topics:

  1. Customization to highlight search keyword
  2. Customization to open Search result items in new window
  3. Customize People Search result

I think you can find what you are looking for in topic No. 2 or at least an idea on how to do it. For instance, you can edit the links - lines that create item url for Icon, Title and URL of search result.

EDIT:

Taken from the site, Topic No. 2:

  1. Go to SharePoint site
  2. Perform a search on site
  3. Search result page will open.
  4. On this page go to Edit page option.
  5. On search core results webpart click on edit webpart option
  6. In webpart properties, Click on the XSL Editor Button
  7. Take backup of XSLT file before modification.
  8. Now copy XSLT and open it in text pad

Search for the lines:

<span class=”srch-Icon”>
<a href=”{$url}” id=”{concat(‘CSR_IMG_’,$id)}” title=”{$url}”>
<span class=”srch-Title”>
<a href=”{$url}” id=”{concat(‘CSR_’,$id)}” title=”{$url}”>
<span class=”srch-URL”>
<a href=”{$url}” id=”{concat(‘CSR_U_’,$id)}” title=”{$url}” dir=”ltr”>

Above lines create item url for Icon, Title and URL of search result. In current state these will open items on search result page. If you want the link to open in a new window, you will add a target=”_blank” at the end of href tag. Now update Webpart XSLT with these modifications and exit from editable mode.

added 413 characters in body
Source Link
dzookatz
  • 516
  • 4
  • 16

This tutorial is about how to customize search results.

There are three topics:

  1. Customization to highlight search keyword
  2. Customization to open Search result items in new window
  3. Customize People Search result

I think you can find what you are looking for in topic No. 2 or at least an idea on how to do it. For instance, you can edit the links - lines that create item url for Icon, Title and URL of search result.

EDIT:

Taken from the site, Topic No. 2:

  1. Go to SharePoint site
  2. Perform a search on site
  3. Search result page will open.
  4. On this page go to Edit page option.
  5. On search core results webpart click on edit webpart option
  6. In webpart properties, Click on the XSL Editor Button
  7. Take backup of XSLT file before modification.
  8. Now copy XSLT and open it in text pad

Search for the lines:

<span class=”srch-Icon”>
<a href=”{$url}” id=”{concat(‘CSR_IMG_’,$id)}” title=”{$url}”>
<span class=”srch-Title”>
<a href=”{$url}” id=”{concat(‘CSR_’,$id)}” title=”{$url}”>
<span class=”srch-URL”>
<a href=”{$url}” id=”{concat(‘CSR_U_’,$id)}” title=”{$url}” dir=”ltr”>

Above lines create item url for Icon, Title and URL of search result. In current state these will open items on search result page. Now we want to open the link open in a new window. To achieve this we will add on target=”_blank” at the end of href tag.

This tutorial is about how to customize search results.

There are three topics:

  1. Customization to highlight search keyword
  2. Customization to open Search result items in new window
  3. Customize People Search result

I think you can find what you are looking for in topic No. 2 or at least an idea on how to do it. For instance, you can edit the links - lines that create item url for Icon, Title and URL of search result.

This tutorial is about how to customize search results.

There are three topics:

  1. Customization to highlight search keyword
  2. Customization to open Search result items in new window
  3. Customize People Search result

I think you can find what you are looking for in topic No. 2 or at least an idea on how to do it. For instance, you can edit the links - lines that create item url for Icon, Title and URL of search result.

EDIT:

Taken from the site, Topic No. 2:

  1. Go to SharePoint site
  2. Perform a search on site
  3. Search result page will open.
  4. On this page go to Edit page option.
  5. On search core results webpart click on edit webpart option
  6. In webpart properties, Click on the XSL Editor Button
  7. Take backup of XSLT file before modification.
  8. Now copy XSLT and open it in text pad

Search for the lines:

<span class=”srch-Icon”>
<a href=”{$url}” id=”{concat(‘CSR_IMG_’,$id)}” title=”{$url}”>
<span class=”srch-Title”>
<a href=”{$url}” id=”{concat(‘CSR_’,$id)}” title=”{$url}”>
<span class=”srch-URL”>
<a href=”{$url}” id=”{concat(‘CSR_U_’,$id)}” title=”{$url}” dir=”ltr”>

Above lines create item url for Icon, Title and URL of search result. In current state these will open items on search result page. Now we want to open the link open in a new window. To achieve this we will add on target=”_blank” at the end of href tag.

Source Link
dzookatz
  • 516
  • 4
  • 16

This tutorial is about how to customize search results.

There are three topics:

  1. Customization to highlight search keyword
  2. Customization to open Search result items in new window
  3. Customize People Search result

I think you can find what you are looking for in topic No. 2 or at least an idea on how to do it. For instance, you can edit the links - lines that create item url for Icon, Title and URL of search result.