Solved

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

Posted on 2013-06-02
9
4,673 Views
Last Modified: 2013-06-15
Hello,

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?
0
Comment
Question by:bigeven2002
  • 5
  • 4
9 Comments
 
LVL 35

Expert Comment

by:Bembi
ID: 39214862
0
 
LVL 17

Author Comment

by:bigeven2002
ID: 39214976
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.
0
 
LVL 35

Expert Comment

by:Bembi
ID: 39222735
> Maybe these methods apply to SharePoint 2007 only?
I don't think so..., because the original article point to Office 365.

http://community.office365.com/en-us/forums/148/t/157137.aspx
Maybe the second option is a solution for you.

Also have a look here:
http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/8222d979-f5ff-4665-a168-7245e4325b2f

As a replacement for Frontpage, you can use also SharepointDesigner or even MS Expression.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 17

Author Comment

by:bigeven2002
ID: 39227866
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?
0
 
LVL 35

Expert Comment

by:Bembi
ID: 39230766
Yes, the description is for 2007, nevertheless the

http://www.eblogin.com/eblogin/post/2011/11/15/ShowFileExtension.aspx
http://sharepoint.stackexchange.com/questions/45827/display-file-extension-in-doc-library-column
http://www.itwriting.com/blog/articles/how-to-show-file-extensions-in-sharepoint-2007-document-lists

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.
0
 
LVL 17

Author Comment

by:bigeven2002
ID: 39230926
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.
sp1.png
0
 
LVL 35

Accepted Solution

by:
Bembi earned 500 total points
ID: 39237913
Mybe easier...., but in general the procedure here:
http://www.itwriting.com/blog/articles/how-to-show-file-extensions-in-sharepoint-2007-document-lists

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.
SPS-FileExt1.PNG
SPS-FileExt2.PNG
SPS-FileExt2a.PNG
SPS-FileExt2b.PNG
SPS-FileExt3.PNG
0
 
LVL 35

Assisted Solution

by:Bembi
Bembi earned 500 total points
ID: 39237922
0
 
LVL 17

Author Comment

by:bigeven2002
ID: 39250904
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.

Thanks.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
Viewers will learn the different options available in the Backstage view in Excel 2013.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question