Solved

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

Posted on 2013-06-02
9
4,508 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
Comment Utility
0
 
LVL 17

Author Comment

by:bigeven2002
Comment Utility
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
Comment Utility
> 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
 
LVL 17

Author Comment

by:bigeven2002
Comment Utility
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 35

Expert Comment

by:Bembi
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
0
 
LVL 17

Author Comment

by:bigeven2002
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
This collection of functions covers all the normal rounding methods of just about any numeric value.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

772 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now