none
Filename.extension not MS-Word doc title in results list RRS feed

  • Question

  • How can I force the 'title' of a word doc as displayed in the results screen to always be its filename.extension rather than the 'title' property value?

    Thanks, Shane

    Thursday, July 7, 2011 3:05 PM

All replies

  • Hi Shane,

    The easiest would be to modify the xslt of the core results web part (which I assume you are using) and show filename.ext based on specified extensions, instead of the default title value. An <xsl:choose><xsl:when...><xsl:otherwise> type of thing.

    Regards,
    Mikael Svenson 


    Search Enthusiast - MCTS SharePoint/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    Thursday, July 7, 2011 7:49 PM
  • Thanks Mikael,

    could you point me to the line I need to change (yes it's the default xslt in the core results web part)? I've had a look at the XSLT code and can't quite figure out what needs to be changed :(

     

    Thursday, July 7, 2011 7:52 PM