How do I create a column for file name + extension with edit menu in SharePoint 2013?


I am testing SharePoint 2013 and found that the default view for items in a documents library show the name of the file, but not the extension.  For my list, I want the record to show the file name and extension so like instead of Document 1, I want it to say Document 1.pdf.

I found that one of the columns (Name (for use in forms)) does show the filename and extension, but it cannot be clicked on.

I want to have a column in my view that combines:
- Name (for use in forms)
- Name (linked to document with edit menu)

How do I do this?
LVL 17
Who is Participating?
Mybe easier...., but in general the procedure here:

The point is not to change the fieldlist, the point is to add a new column into the aspx file, which belongs to the list. So is is NOT just an list column, is it a column in the file what is used to produce the view.

You can open your library in Sharepoint to see the aspx file,... (see Pic3 = result)
Then open SPD and navigate to this aspx file (see pic 1)
Insert a column (pic 1), change the header name
Click into a column field and insert (or edit) the formula.(pic 2, 2a, 2b)
Save the aspx file.

This is SP2010, all the fields and more are supported in 2013 too, and SP2013 is not so different from 2010.
bigeven2002Author Commented:
Thanks for the response.  I reviewed both methods on the link.  I have no way to try Method 1 as FrontPage has been retired, so I did try Method 2.   I applied the change to the global ONET.XML file and restarted IIS, but it is having no effect.

Maybe these methods apply to SharePoint 2007 only?  Or can you clarify how I apply these methods?  I installed SharePoint Designer 2013 but not finding anything there either.
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

> Maybe these methods apply to SharePoint 2007 only?
I don't think so..., because the original article point to Office 365.
Maybe the second option is a solution for you.

Also have a look here:

As a replacement for Frontpage, you can use also SharepointDesigner or even MS Expression.
bigeven2002Author Commented:
Thanks, I looked at the links.  The solutions are very dated and don't seem to apply to SharePoint 2013.  Is there any documentation on this that is specific to SharePoint 2013?
Yes, the description is for 2007, nevertheless the

What I can see is, that @FileLeafRef (still) exists in Sharepoint 2013, so at least this may work with Sharepoint 2013. The idea is to create a view with a custom field, which uses  @FileLeafRef as a function to fill the field.
bigeven2002Author Commented:
I'm sorry, I cannot get the @FileLeafRef to work in SharePoint 2013.  It produces a syntax error.  Design view has been stripped from SPD 2013 so again, the links above are focused on 2007 and unable to help me.

I created a custom view, then went to Library settings.  I selected Create Column, the closest column type listed is "Calculated (calculation based on other columns)".  See screenshot attached.  This is where I pasted the formula @FileLeafRef but it gives a syntax error when I click OK.  I tried the different syntaxes listed on the stackexchange page and they too gave an error.

In the custom view on the documents library, I go to Edit Library on the ribbon which opens SPD.  But there is nothing for converting to XLST Data View or inserting a column or formula.
bigeven2002Author Commented:
I apologize for the delay.  I reviewed the latest posts above, the screenshots above appear to be SharePoint Designer 2010 as design view is used.  However, the 2013 version does not have design view.

I thank you for the time you spent on this.  I will review the 2013 field list you submitted in hopes that it will point in the right direction.  If it doesn't, then I am declaring this impossible.

I will accept your last two posts as the answer as they are helpful.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.