更改“拒绝访问..."文档库 Web 部件的文本字符串 [英] Change "access denied..." text string for document library web part

查看:26
本文介绍了更改“拒绝访问..."文档库 Web 部件的文本字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 MOSS 发布网站和一个拥有自己独特权限的文档库.

I have a MOSS publishing site and a document library with it's own unique permissions.

在站点主页 (default.aspx) 上,我有一个显示文档列表的文档库 webpart.如果用户没有查看文档的权限,Web 部件当前会显示消息

On the site home page (default.aspx) I have a document library webpart that shows a list of documents. If the user does not have permissions to view the documents the web part currently displays the message

拒绝访问.您无权执行此操作或访问此资源."

"Access denied. You do not have permission to perform this action or access this resource."

有没有办法将这条消息改为更友好的内容?

is there a way to change this message to something more friendly?

推荐答案

如果继承不起作用,您也可以使用 jQuery 查找错误消息并用友好的内容替换它.

If inheriting doesn't work out, you could also use jQuery to look for the error message and replace it with something friendly.

有关于在 SharePoint 中设置 jQuery 的信息在这里问题.

There is info about setting up jQuery in SharePoint in this question.

这篇关于更改“拒绝访问..."文档库 Web 部件的文本字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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