내 경고 템플릿에서 항목 내용을 제거하는 방법
-
29-09-2020 - |
문제
공지 목록 및 엔터프라이즈 위키 사이트가 포함 된 팀 사이트에서 일하고 있습니다. 모든 항목이 추가 / 편집 / 삭제되었을 때 모든 사용자에게 알림을받을 일반 경고를 설정합니다. 현재 알림 전자 메일은 전자 메일 본문에 항목 내용을 삽입합니다. 따라서 사용자가 새 Wiki 페이지를 추가하면 모든 페이지가 매우 길어 지므로 모든 콘텐츠가 전자 메일로 보내지 않습니다.
alerttemplates.xml
에있는 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\XML
에서이 문제를 제거하려고합니다. 그러나 템플릿이 매우 길어지고 제거 해야하는 XML 구성 요소 / s를 결정할 수 없습니다.
감사합니다
편집
확인을 시도했습니다. 알림 목록 경고 템플릿을 따르십시오 : -
<ImmediateNotificationExcludedFields>ID;MySubsUrl;ListUrl;MobileUrl;Title;Body;Expires;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</ImmediateNotificationExcludedFields>
<DigestNotificationExcludedFields>ID;MySubsUrl;ListUrl;MobileUrl;Title;Body;Expires;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</DigestNotificationExcludedFields>
</Properties>
.
& 다음과 같습니다 : -
<Properties>
<ImmediateNotificationExcludedFields>ID;Alerts_link_modify;Alerts_link_view;Alerts_mobile_view;Title;Body;Expires;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</ImmediateNotificationExcludedFields>
<DigestNotificationExcludedFields>ID;Alerts_link_modify;Alerts_link_view;Alerts_mobile_view;Title;Body;Expires;Author;Editor;Modified_x0020_By;Created_x0020_By;_UIVersionString;ContentType;TaskGroup;IsCurrent;Attachments;NumComments;</DigestNotificationExcludedFields>
</Properties>
.
그러나 여전히 다음 MySubsUrl;ListUrl;MobileUrl
를 제외 했음에도 불구하고 경고 메시지 내부에서 얻을 수 있습니다. -
해결책
AlertTemplates XML에는 여러 목록 유형에 대한 템플릿이 있습니다.
에 묶인 템플릿의 구조를 찾을 수 있습니다.<AlertTemplate Type="List" Name="SPAlertTemplateType.GenericList">
.
및 공지 목록을위한 유사한 태그.그러나 Alertemplate XML을 직접 수정하는 것은 권장되지 않습니다.또한 XML을 수정하면 해당 목록 템플리트를 통해 생성 된 모든 목록에 템플릿 변경이 적용됩니다.이 게시물.다른 방법은 공지 사항이 추가 / 수정 될 때 사용자 정의 솔루션을 작성하고 필수 형식의 전자 메일을 트리거하는 것입니다.
다른 팁
사용자 정의 템플릿을 수정해야합니다.제거하거나 주석을 삭제 해야하는 정보 블록을 찾으려면 다음 링크가 표시됩니다.
https : // msdn.microsoft.com/es/library/office/bb862021(v=office.14).aspx