问题
I Have Content Approval turned on for a list. When Users create Items they get the message 'Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights.'
I want to change the text of this message in a particular site collection.
I found the message defined in \12\config\resources\wss.resx with a key of checkin_publishMajordesc.
Does anyone know if there's a way to override the seetiings in the Resources filesat the site collection level, or even at the page level?
The site is currently on wss 2007
回答1:
The message is from the ApprovalMessage control. It is being used by the InformationBar template found in 12\TEMPLATE\CONTROLTEMPLATES\DefaultTemplates.ascx:
<SharePoint:RenderingTemplate ID="InformationBar" runat="server">
<Template>
<SharePoint:GenericInformationBar runat="server">
<Template_Controls>
<SharePoint:FileUploadedMessage runat="server"/>
<SharePoint:ApprovalMessage runat="server"/>
<SharePoint:EmailCalendarMessage runat="server"/>
<Sharepoint:CopySourceInfo runat="server" />
<Sharepoint:AssignToEmailMessage runat="server" />
</Template_Controls>
</SharePoint:GenericInformationBar>
</Template>
</SharePoint:RenderingTemplate>
You could create your own template to override this behavior. Examples are here, here, and here.
It takes some effort, but it works. Alternatively, you could use CSS or Javascript/JQuery to hide/change the text inside table.ms-informationbar.
来源:https://stackoverflow.com/questions/3356189/sharepoint-content-approval-message