Show file extensions in document libraries in SharePoint 2010

I have a SharePoint site collection with several additional sites, each of which has its own document library. Now I want to add file extensions to the document names in all of these libraries. How should I do it?

I saw tips that tell you to change the onet.xml file, but they never look like me, and besides, I don’t know exactly what happens with this inet.xml file - does it change existing libraries? Other tips tell me to use the SharePoint constructor, which would mean I have to do this for every view in every library, right? Therefore, I would prefer to do this from code, where I feel more comfortable and can automate the process.

So, all I want is to replace "Name (associated with the document with the editing menu)" with "Name (for use in forms)", but at the same time keep the link and the editing menu. I found that I need to use the FileLeafRef field, but I do not know how to do this.

+5
source share
3 answers

If you need to do this for only one library, the sharepoint developer is the way to go. You can convert the view to an XSLT view and use the FileLeaFref field.

, . "", , Jquery-, , , .

+1

pts.

  • SharePoint
  • WebPartPages: ListViewWebPart
  • , XSLT
  • ""
  • " " → "", "" " ", "".

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

ONET.XML - Name="File_x0020_Type"/> Name="Created_x0020_Date">. ONET.XML IISRESET. ( ONET.XML, , ).

+2

WebPartPages Sharepoint Designer , , . (, , , ). name, , .

  • , . FileExt
  • Sharepoint Designer Workflows → Listworkflows
  • → →
  • " FileExt : " (, " ", )
  • Workflow Workflow,
  • If the library already contains files, I will also activate to start the workflow if the item has been modified. Then I add a column, fill it with any text in the view of the data sheet so that each element changes and thereby activate the workflow. After that, I delete the column and return the workflow again only if a new item is added.

In fact, I was hoping that I could do the same with the calculated field, but so far it hasn’t worked out.

0
source

All Articles