我有一个 wss 3.0 安装,需要一个“匿名”讨论板。我可以修改视图,这样就不会显示用户名,但是当我单击“回复”时,我正在回复的消息会显示在富文本框中,并带有上一个发帖者的用户名。
有没有办法删除该用户名?或者完全删除以前发布的文本?我在 ..12\TEMPLATE\FEATURES\DiscussionsList\Discuss 文件夹下找到了包含大量相关信息的 schema.xml 文件,但不确定这是否是调整此设置的最简单方法。
任何意见表示赞赏。
I have a wss 3.0 install which needs an "anonymous" discussion board. I can modify the view so no usernames are displayed, however when I click on "reply", the message I'm replying to shows up in the rich text box with the username of the previous poster.
Is there a way to remove that username? or Remove the previous posted text altogether? I've found the schema.xml file with lots of relevant info under the ..12\TEMPLATE\FEATURES\DiscussionsList\Discuss folder, but not sure if this is the easiest way to adjust this setting.
Any comments appreciated.
发布评论
评论(2)
最佳实践表明,您应该始终创建自定义列表定义,而不是尝试修改 OOB 资产。
最简单的方法是复制 12\TEMPLATE\FEATURES\DiscussionsList\Discuss 文件夹,修改功能 ID 和名称以使其唯一。然后您可以随意更改架构呈现模板(即视图架构)并修改编辑和显示表单。
如果您需要修改实际的输入表单,您可以考虑自定义控件模板:http ://msdn.microsoft.com/en-us/library/aa543922.aspx
自定义列表定义:http://msdn.microsoft.com/en-us/library/ms466023.aspx
Best practice says that you should always create a custom list definition instead of trying to modify the OOB assets.
The easiest way to do this is take a copy of the 12\TEMPLATE\FEATURES\DiscussionsList\Discuss folder, modify the feature Ids and names so that its unique. Then your free to change the schema render template (i.e view schema) and modify the edit and display forms.
If you need to modfify the actual entry form you may consider a custom control template : http://msdn.microsoft.com/en-us/library/aa543922.aspx
Custom list definition : http://msdn.microsoft.com/en-us/library/ms466023.aspx
Agrothe,
我有类似的要求(隐藏或掩盖回复线程内的作者。)。您认为 schema.xml 内部究竟有哪些内容可以让您实现这一目标?
不确定列表表单是否暴露给 xslt。如果是这样,那么也许这是另一种方法。
FWIW,我研究过的其他解决方案:
(1)自定义事件处理程序。不幸的是,我无法确定当有人点击回复时会触发哪个事件。
(2) 匿名博客评论 (http://blogs.msdn.com/sharepoint/archive/2007/08/06/anonymous-comment-feature-for-sharepoint-blog-now-available-on-codeplex .aspx)。
(3)我正在考虑的另一件事是引入全局匿名活动目录登录,用户可以使用它来匿名发帖。并不理想,但就我花在研究解决方案上的时间而言,这可能是我最后的希望。
Agrothe,
I have a similar requirement (hide or mask the author inside the reply thread.). What exactly inside of schema.xml do you think will allow you to do accomplish that?
Not sure if the list forms are exposed to xslt. If so, then perhaps this is another approach.
FWIW, the other solutions I have investigated:
(1) A custom event handler. Unfortunately, I can't pinpoint which event fires when someone click reply.
(2) Anonymous blog comments (http://blogs.msdn.com/sharepoint/archive/2007/08/06/anonymous-comment-feature-for-sharepoint-blog-now-available-on-codeplex.aspx).
(3) the other thing I am considering, is to introduce a global anonymous active directory login, which users can use to post anonymously. Not ideal, but for the amount of time I have spent researching a solution, might be my last hope.