locked
Custom icon in BDC config RRS feed

  • Question

  • Hi,

    I have configured BDC successfully and the search result is displayed as expected.

    The icon showed near the search result is the HTML icon.

    How do i configure to show a custom icon ?

    Wednesday, August 8, 2012 1:44 PM

Answers

  • We finally achieved it, we put our custom image url in the XSLT and the custom icons appeared in the search results.
    Thursday, August 16, 2012 5:46 PM

All replies

  • Hi,

    Please take a look at this article Change SharePoint Search Icon with Just CSS


    Dmitry

    Lightning Tools LogoLightning Tools Check out our SharePoint tools and web parts | Lightning Tools Blog

    Thursday, August 9, 2012 10:00 AM
  • Dmitry,

    The link you shared talks about changing the search lens icon to a different icon. I wanted to change icons besides the search result. The search result are from Dynamics CRM configured through BDC. Would like to display the corresponding CRM entity image besides search result.

    Please find an example.

    

    Thursday, August 9, 2012 2:26 PM
  • Hi,

    For the detailed steps, please refer to the following article:  How to: Change the Icon for a Search Result 


    Dmitry

    Lightning Tools LogoLightning Tools Check out our SharePoint tools and web parts | Lightning Tools Blog

    Thursday, August 9, 2012 2:31 PM
  • Dmitry,

    Thanks for the reply. I analysed the XSLT from the webpart, but unable to set my custom image.

    Iam not sure where should i refer my custom image name/url like "myimage.gif". The image shown should be dynamic based on search result.

    Please find a sample snippet:

    <xsl:template match="Result"> 
      <xsl:variable name="id" select="id"/>
      <xsl:variable name="url" select="url"/>
      <span class="srch-Icon"> 
       <a href="{$url}" id="{concat('CSR_IMG_',$id)}" title="{$url}">
       <img align="absmiddle" src="{imageurl}" border="0" alt="{imageurl/@imageurldescription}" />
       </a>
      </span>
      <span class="srch-Title">
       <a href="{$url}" id="{concat('CSR_',$id)}" title="{$url}">
        <xsl:choose>
         <xsl:when test="hithighlightedproperties/HHTitle[. != '']">
             <xsl:call-template name="HitHighlighting">
              <xsl:with-param name="hh" select="hithighlightedproperties/HHTitle" /> 
             </xsl:call-template>   
         </xsl:when>
         <xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise> 
        </xsl:choose>
       </a>
        <br/> 
       </span>

       <xsl:choose>
         <xsl:when test="$IsThisListScope = 'True' and contentclass[. = 'STS_ListItem_PictureLibrary'] and picturethumbnailurl[. != '']">
           <div style="padding-top: 2px; padding-bottom: 2px;">
            <a href="{$url}" id="{concat('CSR_P',$id)}" title="{title}">
              <img src="{picturethumbnailurl}" alt="" />
            </a>
           </div>
         </xsl:when>
       </xsl:choose>


    Friday, August 10, 2012 8:26 PM
  • Dmitry,

    Do you have any suggestion ?

    Tuesday, August 14, 2012 2:17 PM
  • We finally achieved it, we put our custom image url in the XSLT and the custom icons appeared in the search results.
    Thursday, August 16, 2012 5:46 PM