How to display file extensions

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 adding
Name=”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.

Hi
use these functions
RIGHT (Text, Number)
Return X characters from the right
RIGHT(“The Quick Brown Fox”, 5)
n
SEARCH(Text1, Text2, Num)
Returns the index of Text1 within Text2,starting the search at index Number
Formula should be
right([Name-column],search[".",[Name-column],1))
More info regarding calculated columns
http://junestime.wordpress.com/2013/02/12/sharepoint-calculated-column-formulas/
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

Similar Messages

  • Idoc-xi-file scenario.  how to display file in html format

    I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
    In idoc-xi-file scenario.......  how to display file in html format ??
    Thanks in advance
    Kumar

    Hi Vijayakumar,
    Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
    Regards
    Kumar

  • Can I force iTunes to display file extensions?

    I just downloaded iTunes  yesterday.  It's my first experience with the program.
    Can I force iTunes to display file extensions?  If so, how?
    For example, when converting an MP4 audio file to an MP3 one, neither shows its extension, and so the two files appear the same within iTunes.

    I wrote a program for Windows to embed the downloaded
    artwork into the file. Please note, embedding the
    artwork takes up more disk space; Apple's method of
    NOT embeddeding it means they only have one copy of
    the artwork. Embedding the artwork takes up X times
    as much space, where X is the number of tracks for
    that album. (e.g. if the album artwork is 500 KB,
    and you have 10 tracks, the disk space consumed is
    10*500KB or 5000 KB (~5MB))
    http://home.comcast.net/~teridon73/itunesscripts/itune
    sinsertartwork.zip
    That sounds exactly like something I am looking for. Yes, I realize that I am sacrificing disk space to do this - but I have a lot of space to spare on my iPod and I am really tired of redownloading artwork when I change the way I organize my files (or God forbid I have to do a full restore at some point).
    I am running your tool now and it looks to me like it works great! Thanks for posting it, I truly appreciate it. Do you know of any sites where people develop these kinds of tools for iTunes (I suspect you participate in one or more of these).
    One question - from the looks of it, you do handle the case where I have already embedded my own artwork in files (for those that are not in the Apple iTunes library). Does iTunes actually put that image in its database (the one I embedded) or did you have to allow for that in your utility? Just curious.
    Thanks a LOT for that utility!

  • Display File Extension in iPhoto?

    I've just started to use iphoto.  In the thumbnail view of an event (or for that matter, anytime I'm viewing a display of thumbnails), I would like iphoto to display file name and file extension.  It's not doing that and I can't see a setting in iphoto preferences to enable file extensions.  I know there's a Finder preference to show all extensions, and it is checked.
    Is there a way to display file extensions?

    Yes.
    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done. 
    3 - however, if you get the navigation window
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements  the Saving File preferences should be configured as shown:
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Note 1: screenshots are from PSE 10
    Note:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.

  • How to display file content in browser using servlet..? urgent!!!

    hello,
    i am building a application for which when a user logs in he will we redirected to page where he will have one link ,with this link a file is associated.
    when user press that link he should be able to see that particular file in internet browser....
    now can anybody give me a code sample of how to display a file in browser....
    please reply me as soon as possible...

    thanks for your reply....
    but i don't want this....
    i want to read a file from disk into stream or buffer and from that again reading and printing in browser.....
    a servlet should be built for this....
    i wrote this but its not working
    ========================================================
    public class FilePrinting extends HttpServlet
         public void doPost(HttpServletRequest req,HttpServletResponse res)
              throws IOException,ServletException
              ServletOutputStream out=res.getOutputStream();
              res.setContentType("text/html");
              String fileURL="/mydomainWebApp/Test.htm";
              res.setHeader("Content-disposition","attachment; filename=" +="Test.htm" );
              BufferedInputStream bis=null;
              BufferedOutputStream bos=null;
              try
                   URL url = new URL( fileURL );
                   bis=new BufferedInputStream(url.openStream());
                   bos = new BufferedOutputStream(out);
                   byte[] buff = new byte[2048];
                   int bytesRead;
                   // Simple read/write loop.
                   while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
                   bos.write(buff, 0, bytesRead);
              }catch(final MalformedURLException e)
                   System.out.println ( "MalformedURLException." );
                   throw e;
              }catch(final IOException e)
                   System.out.println ( "IOException." );
                   throw e;
              }finally
                   if (bis != null)
                        bis.close();
                   if (bos != null)
                        bos.close();
    =======================================================================
    please send me sample code if anyone have../...

  • How to assign file extension and custom icon to executable?

    Hi all,
    I was reading an old thread about this issue:
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=116925 
    I need to try to do this.  My application uses a custom file extension (i.e. .abc).  Upon installation I would like to:
    1.  Assign My App and custom icon to the file class (extension .abc).
    This could be done by manipluting the registry (http://msdn.microsoft.com/en-us/library/bb776856(VS.85).aspx)?  This could be a problem with Vista s unless registry operations occur during installation any changes are placed in a VirtualStore, correct?
    2.  Enable the double-clicking of .abc file type to pass the data in the file to my VI (exe). 
    According to the File Handling Guidelines of Jean-Pierre Drolet (http://www.openg.org/tiki/tiki-index.php?page=File+Handling+Guidelines) the best way to do this may be using LabVIEW as an ActiveX server.
    I know that when I build an executable (or installer?) there is the option to enable LabVIEW to act as an ActiveX server.  This much I know I need to do.
    I thought I would open this discussion again as others may be interested and there doesn't appear to be a completely clear solution available.  Please do contribute where you can.
    Cheers,
    Battler.

    battler. wrote:
    My application consists of Event Structure.
    How to register for ommand line event so that when a user double-clicks on a .abc file I can handle the opening of it?
    This needs to work (the files need to open) not only when the application is closed but also when it's already open.
    Anyone have ideas? 
    The solution to that is to implement a DDE server in your application (and add DDE entries to the registry on installation). There are still DDE functions in LabVIEW vi.lib\Platform\dde.llb but they are considered depreciated and have been removed from the palette, also because Microsoft is trying to tell everyone that DDE is depreciated and sort of unsupported too. But it is still the mechanisme to pass actions from the shell to running applications.
    I hesitate to send you over to lavag.org where there have been some discussions about this years ago. If you go there you would do good to employ a friendly attitude. That board is run all by enthusiasts and idealists and they are all great folks but react not very friendly to people with an attitude.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to set file extension?

    Hello there,
    I have added the ablility of saving the data in my program. I was wondering how do I restrict the file extension when the user wants to save the file?
    What I mean is right now, when a user saves the data to file, they can choose the file name and the file extension. I do not want to allow them to choose file extension. I want to have a predefined extension, for example .usr or .dat.
    I have seen this in many applications but I do not know how to implement this. I would appreciate it if someone could help me.
    Thanks for your help!

    How you are getting the fname from the user has an impact on how you do this, but not what needs to be done. What is required to have something that takes the fname from the user and parses it, extracting a fname. Once you have that, just append the extension that you want and save the file.

  • How to include file extensions in contacts?

    When printing contact sheets from the Print module I don't manage to have the file name inclusive of file extension under each thumbnail (e.g. Maria.jpg); so far I only managed to have the file name without the extension (e.g. Maria). Any idea how to do it?

    F-
    <br />
    <br />I doubt it's impossible, but why would you choose to do this? I we know, perhaps another method may suffice.
    <br />
    <br />
    <span style="color: rgb(102, 0, 204);"></span>
    <font br="" /></font> color="#600000" size="2"&gt;~~ John McWilliams
    <br />
    <br />
    <br />
    <br />MacBookPro 2 Ghz Intel Core Duo, G-5 Dual 1.8; Canon DSLRs

  • Displaying file extension and "raw" tag in iPhoto 08

    In iPhoto 06, filenames were displayed with their extensions and a "raw" tag was added.
    In 08, the "title" field doesn't contain the file extension. Is this a result of the way I imported photos into 08? I used "import" to bring them in from folders on a network drive.
    Glenn

    I right clicked the RAW file, then chose "edit in separate window". I did crop, contrast, sharpen, etc. Then the "Done" button.
    For example, I imported both RAW and JPEG from my CF card to iPhoto. They are IMG_3067.CR2 and IMG_3067.JPG, respectively. I then duplicated the first file and renamed the new one as IMG_7777.CR2. I did the edit like mentioned above on IMG_7777.CR2. Finally I clicked "Done". You can see that IMG_7777.CR2 differs from IMG_3067.CR2 but it still has the CR2 file extension.
    Is this normal or I missed something here?
    http://farm4.static.flickr.com/3170/28594822947e9d6b763ao.jpg
    Message was edited by: KenWong

  • How to hide file extension on finders symbolic view?

    When I switch the finder's view to symbolic the files view turns to an icon or minimized first page of the file's content. In some cases the file extension is displayed at the bottom of this symbol. E.g. files of type PDF always show the 3 letters PDF at the bottom of the small preview image. Files of type PKG don't show it.
    Is there a way to change this behaviour? Changing it in the finder's prefrences only affects hiding or showing the file extension in list view.
    Thanks for any advice!

    I tried it and it didn't look like it took effect. I switched folders and cam back to the first one I looked at and the extensions were showing.
    It may just need time to redraw the view.

  • How to display file status during importation?

    Hi,
    Can anyone tell me how to display import file status during file importation? The file status can consist of file name, type of file, size of file, % of complete during importation, ....
    Thx in advance

    Hi
    use these functions
    RIGHT (Text, Number)
    Return X characters from the right
    RIGHT(“The Quick Brown Fox”, 5)
    n
    SEARCH(Text1, Text2, Num)
    Returns the index of Text1 within Text2,starting the search at index Number
    Formula should be
    right([Name-column],search[".",[Name-column],1))
    More info regarding calculated columns
    http://junestime.wordpress.com/2013/02/12/sharepoint-calculated-column-formulas/
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • How to Hide File Extensions in URL

    Hello Again!
    I've tried to edit my .htaccess file to hide file extensions in my URL, but nothing I try works. I get "Page Not Found" when I try to remove the .html from my pages. Here is the code I have used:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html !-f
    RewriteRule ^{.*}$ $1.html
    I've also used
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^{.*}$ $1.html [L,QSA]
    Neither worked.
    Any thoughts would be helpful! Thanks!
    K

    When you save the document there is a check box in the save window that gives you the option to hide the extension. I've checked this for both Pages & Word. I can't be certain that all applications give this option.
    You can of course delete the extension name from individual files already on your computer by selecting the file name as if editing the name and just deleting the extension part of the name.
    Neville

  • How to strip file extension off a filename NSString ?

    To retrieve file extension from NSString, we use "pathExtension".
    To retrieve the filename from NSString without the extension we use ?

    9 views any nobodies helping ?
    Oh well...
    I've created this function to achieve this:
    -(NSString *) returnfile_name_without_theextension:(NSString *)filename
    NSString *filename_extension = [filename pathExtension];
    NSInteger filenameextensionlength = [filename_extension length];
    NSInteger filename_length = [filename length];
    filename_length = filename_length - (1 + filenameextensionlength);
    return [ filename substringWithRange:NSMakeRange(0, filename_length) ];
    Hope someone might find this useful.

  • How to validate File extension.

    Hi all,
    Can anyone suggest me any Function Module to validate a file extension while selecting the Filename at popup window.
    thanx
    Rakesh

    Hi,
      If you are using upload FM, fill up the following parameters..If you want to filter the data by certain extension.
      Hope this works...
    FILETYPE                        DAT   
    ITEM                                  
    FILEMASK_MASK                   *.xls 
    FILEMASK_TEXT                   *.xls 
    FILETYPE_NO_CHANGE              X     
    THanks,
    Naren

  • How to display files in thumbnail view ???

    i want to display my avi file list in thumbnail view as windows explorer is providing... can anyone tell me... how can i implement the same??

    You can use a [url http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]Wrapped JList to display item in a grid. You would need to provide a custom renderer.

Maybe you are looking for

  • Subsequent free of charge delivery issue

    Hi freinds,    can any help me out, how we need to configure subsequent free of charge delvieries, and credit memos in what circumstnces. thanks

  • Export with 2GB

    Hi, I automatically run, by crontab, a script in Linux to export the base, but the file has been created with only 2GB. Just two tablespace is more than 20GB and the log generated without final, as if has been closed. The command: #!/bin/sh export OR

  • [svn:fx-trunk] 10920: Added new file introduced in TLF Build 517.

    Revision: 10920 Author:   [email protected] Date:     2009-10-07 15:27:29 -0700 (Wed, 07 Oct 2009) Log Message: Added new file introduced in TLF Build 517. QE notes: None Doc notes: None Bugs: None Reviewer: None Tests run: ant checkintests Is notewo

  • Working of 'RH_STRUC_GET'

    Hello, I have a following Org structure O (Org1) |_ S |   |_ P (P1) | |_ S |   |_ P (P2) | |_ O (Org2)     |_ S         |_ P (P3) I want to get P1 and P2 I am using RH_STRUC_GET function module to retrieve the same. This is how I am passing the param

  • 2 hours to update Flash Player ???

    I've been on Option 3 since January 2011 and I'm aware of the traffic shaping that applies to file sharing. It has been mildly irritating but I've usually managed to find a direct download of the file(s) I need....usually Open source Linux of various