Show file extension in a SharePoint document library

 
 
  • Gérald Barré

By default, document libraries do not show file extensions. You have to look at the icon to guess the kind of document. However, multiple extensions can have the same icon. So, it could be useful to display the extension.

  1. Open SharePoint Designer
  2. Edit the document library view
  3. Right-click on the file name and select "Edit Formula"
  4. Use the following XPath expression $thisNode/@FileLeafRef
  5. Save changes

Voila 😃

Do you have a question or a suggestion about this post? Contact me!

Follow me:
Enjoy this blog?Buy Me A Coffee💖 Sponsor on GitHub