Doc Library更改版本历史记录“注释”列名称 [英] Doc Library change version history “comments” column name

查看:61
本文介绍了Doc Library更改版本历史记录“注释”列名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SP2013我有一个文档库,版本历史记录已启用。我希望更改版本历史记录页面中"注释"列的显示名称。可能吗 ?。如果有的话有什么方法?

解决方案


_layouts / 15 / versions.aspx是一个应用程序页面。 "注释"不是列表列,我们可以更改显示名称。


您可以在C:\Program Files \Common Files \ microsrosoft shared\Web Server Extensions \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ LAYOUTS文件夹。


要将"注释"更改为其他单词,您可以将脚本添加到versions.aspx中。





1。打开C:\Program Files \Common Files \ microsrosoft shared\Web Server Extensions \15\TEMPLATE \LAYOUTS文件夹。


2。从文件夹备份versions.aspx。


3。使用记事本或SharePoint Designer从文件夹打开versions.aspx。


< span style ="color:#1F497D"> 4。在< asp:Content contentplaceholderid =" PlaceHolderMain"下添加以下代码: RUNAT = QUOT;服务器"> tag:

< script> 
document.addEventListener('DOMContentLoaded',function(){
document.getElementById(" diidVersionsSortComments")。innerHTML =" test";
},false);
< / script>








5。保存页面。


测试结果:





最佳 问候,


Linda  Zhang


SP2013 i have a document library were the Version history is enabled. the Display Name of the Comments column in Version history page i would like to Change. Is it possible ?. If so what are the ways ?.

解决方案

Hi,

The _layouts/15/versions.aspx is an application page. The "Comments" is not a list column which we can change the display name.

You can check the code of the versions.aspx in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS folder.


To change "Comments" to other words, you could add script to the versions.aspx.


1. Open C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS folder.

2. Backup the versions.aspx from folder.

3. Open the versions.aspx from folder using Notepad or SharePoint Designer.

4. Add the following code under <asp:Content contentplaceholderid="PlaceHolderMain" runat="server"> tag:

<script>
document.addEventListener('DOMContentLoaded', function() {
   document.getElementById("diidVersionsSortComments").innerHTML = "test";
}, false);
</script>



5. Save the page.

Testing result:


Best regards,

Linda Zhang


这篇关于Doc Library更改版本历史记录“注释”列名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆