none
Display Friendly name in Refinement Panel [Site Category] for External Content Type ? RRS feed

  • Question

  • Hi everyone ,
    I have external content type which get data from SQL Server and these data Searchable by FAST Search.
    My Problem :
    In Refinement Panel I want to display friendly name in Site Category [See the below image] some this like ex: "Forum Site"
    I have tried to change it from SharePoint Designer >> External content Type >> Edit Connectin Properties [see the below image] and then Run Full Crawl but not as i Want.
    so How we can Modify it to Show Friendly Name if it's possible ?

    Regards, Fadi Abdulwahab. http://sqlgoogler.blogspot.com/ Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you
    Sunday, October 2, 2011 12:21 PM

Answers

  • Hi Fadi,

    Unlike the built-in SharePoint search you cannot edit the refiner xml to display friendly names (which is a shame).

    The easiest supported option might be to change the xslt of the refiner webpart, and do the translation there. 

    Regards,
    Mikael Svenson 


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    Sunday, October 2, 2011 9:09 PM

All replies

  • Hi Fadi,

    Unlike the built-in SharePoint search you cannot edit the refiner xml to display friendly names (which is a shame).

    The easiest supported option might be to change the xslt of the refiner webpart, and do the translation there. 

    Regards,
    Mikael Svenson 


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    Sunday, October 2, 2011 9:09 PM
  • Thanks Mr.Mikael ,

    I will fix the problem with Client script like jQuery by replace the text in OnLoad event.

     


    Regards, Fadi Abdulwahab. http://sqlgoogler.blogspot.com/ Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you
    Wednesday, October 5, 2011 5:28 AM
  • Hi Fadi,

    Although jquery is an easy way to do this, I would rather have edited the xslt with a replacement function. In general replacement is better handled on the server than in the client. But using jQuery will work fine and it's easy and quick (which xslt is as well if you know it ;) ).

    Regards,
    Mikael Svenson 


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    Wednesday, October 5, 2011 2:43 PM
  • I got SiteTitle to display the site names but it wont refine i get 0 results.
    http://twitter.com/insy09 http://friendfeed.com/insy09 http://zebracube.wordpress.com
    Thursday, December 29, 2011 12:35 PM
  • Have you fixed this?

    I want also to change the sitename (in FAST Search 2010).

    If someone can help with an example, thanks for all of us.


    OvidiuG

    Thursday, March 14, 2013 9:46 PM
  • Hi,

    I have replaced the title with jQuery on load event like this 

     if ($('a[title*="fast_title"]').val() != undefined) {
                $('a[title*="fast_title"]').attr('title', 'new_title').text('new_title');
            }



    Regards,
    Fadi Abdulwahab, SharePoint Consultant
    http://blogs.msdn.com/b/fabdulwahab
    http://sqlgoogler.blogspot.com/

    Friday, March 15, 2013 7:38 AM
  • Hi,

    Thanks for your answer. I've choosed to play with xslt and I implement the following solution, maybe you can use in future.

    Regards, Ovidiu

     <xsl:template name="FilterLink">
      <xsl:param name="Url"/>
      <xsl:param name="UrlTooltip"/>
      <xsl:param name="Value"/>
      <xsl:param name="FilterSelection"/>
      <xsl:param name="ShowCounts"/>
      <xsl:param name="Count"/>
      <xsl:param name="Percentage"/>
      <xsl:param name="Indentation"/>
      <xsl:variable name="SecureUrl">
       <xsl:call-template name="GetSecureUrl">
        <xsl:with-param name="Url" select="$Url" />
       </xsl:call-template>
      </xsl:variable>
      <li class="ms-searchref-filter {$FilterSelection}">
       <xsl:if test="($Indentation = '1')">
        <span class="ms-searchref-indenticon">&#8627;&#160;</span>
       </xsl:if>
       <a class="ms-searchref-filterlink" href="{$SecureUrl}" title="{$RefineByHeading}: {$UrlTooltip}">
        <xsl:choose>
         <xsl:when test="contains($Value, 'url value')">
          <xsl:value-of select="'Your Name'"/>
         </xsl:when> 
         <xsl:otherwise>
          <xsl:value-of select="Value"/>
         </xsl:otherwise>
        </xsl:choose>


    OvidiuG


    • Edited by OvidiuG Friday, March 15, 2013 7:55 AM
    Friday, March 15, 2013 7:54 AM
  • Thanks :)

    Regards,
    Fadi Abdulwahab, SharePoint Consultant
    http://blogs.msdn.com/b/fabdulwahab
    http://sqlgoogler.blogspot.com/

    Friday, March 15, 2013 8:04 AM