Quantcast
Channel: SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations forum
Viewing all articles
Browse latest Browse all 9368

How to display file extensions

$
0
0

Hi,

I'm trying to get our Sharepoint 2013 server to show file extensions again and I've had no luck so far. I've been able to add an extra name column that shows the file extension (like ), but that name is not clickable anymore so I've ended up with one name that's a link and the same name next to it. This doesn't look good, especially when the users pick overly long file names.

This (http://social.technet.microsoft.com/wiki/contents/articles/11161.how-to-display-file-extensions-in-a-sharepoint-document-library.aspx) seems to apply to Sharepoint 2007 only. I'm not sure which onet.xml file they mean and the default file has several occurences of "Name=”Created_x0020_Date”", or how addingName=”File_x0020_Type”/> without an extra opening bracket would work.

I've also found and tried this solution: http://social.technet.microsoft.com/Forums/sharepoint/en-US/59c15eee-9116-4aa1-8d16-32cd361c9a2f/show-file-extensions-in-document-library?forum=sharepointcustomizationprevious

>>3. Edit the WebPartPages:XsltListViewWebPart so that the link contains the extension.

>>a. Open SharePoint Designer and click on the desired document library.
>>b. Open the View you want to change, which in most cases is "All Documents".
>>c. Find the line that looks like this:

>><xsl:value-of select="$thisNode/@FileLeafRef.Name" />

>>d. Edit the line to look like this:  (the xsl:if tests to see if the suffix is not blank and then displays a '.' and the suffix)

>><xsl:value-of select="$thisNode/@FileLeafRef.Name" /><xsl:if test="$thisNode/@FileLeafRef.Suffix!=''">.<xsl:value-of select="$thisNode/@FileLeafRef.Suffix" /></xsl:if>

This doesn't seem to work with Sharepoint 2013 because the line <xsl:value-of select="$thisNode/@FileLeafRef.Name" /> doesn't seem to exist. Are there any other suggestions on how to get the file extensions to show?

Thank you.


Viewing all articles
Browse latest Browse all 9368

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>