在哪里可以找到讨论板newform.aspx页面进行修改?
我必须修改讨论板新帖子页面中的文本。现在它显示“此列表中的项目需要内容批准。在获得具有适当权限的人批准之前,您提交的内容不会出现在公众视图中。有关内容批准的更多信息。”
我必须在其中附加一些文本这条消息。我正在尝试找到讨论板newform.aspx页面进行修改。请告诉我在哪里可以得到它?
I have to modify text in discussion board new post page. Now it is showing "Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval."
I have to append some text to this message. I am trying to find discussion board newform.aspx page to modify. Please let me know where can I get that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
假设您的讨论列表在名为“http://yoursite”的站点上称为“公共讨论”,
您描述的消息是由 sharepoint 的内容审批框架注入的。要自定义消息,您很可能需要使用 JavaScript 来查找消息框并更改文本。
在我的网站上,节点的 html xpath 是这样的:
//span[@id='part1']/table/tbody/tr/td[2]
Assuming your discussion list is called "Public Discussion" at a site called "http://yoursite"
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
The message you describe is injected by sharepoint's content approval framework. To custom the messsage, you will most likely need to use javascript to find the message box and change the text.
On my site the html xpath to the node is something like this:
//span[@id='part1']/table/tbody/tr/td[2]
在文件系统上,它将位于:
$sphome /“讨论板的名称”(这将是一个文件夹)/Forms/newform.aspx
On the file system it will be here:
$sphome / "Name of your discussion board" (this will be a folder) / Forms / newform.aspx
此处提出了类似的问题。它描述了处理此内容显示的自定义模板控件。
还有一个链接 此处 描述了使用 css 执行此操作的解决方案。这将允许您隐藏 OOB 文本,然后显示您自己的内容。但是,它在 IE 以外的浏览器上运行存在一些问题,因此请在您的测试中包含这一点。
There is a similar question asked here. It describes custom template controls handle the display of this content.
There is also a link here that describes a solution to do this using css. This would allow you to hide the OOB text and then have your own content displayed instead. However, there is some question of it working on broswers other than IE so include this in your testing.