Solved

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

Posted on 2013-06-02
9
4,592 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
 
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

Experts-Exchange users below are the steps you can follow to upgrade your Lync server to latest CU's or cumulative updates. Note: Perform it during non-production hours.   Step 1: Backup your lync and SQL server database. Follow below article: h…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

864 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

23 Experts available now in Live!

Get 1:1 Help Now