Aanpassen SharePoint Alert Templates
Binnen SharePoint hebben gebruikers de mogelijkheid om alerts aan te zetten op bibliotheken, lijsten, mededelingen, et cetera. De werking is simpel. Gebruikers geven eenvoudig aan hoe ze op de hoogte gehouden willen worden: nieuwe items of alleen gewijzigde? Direct na plaatsing, per dag of per week? Nadat de alert is ingesteld, zorgt SharePoint dat de gebruikers een notificatie van de wijziging ondervangen via e-mail .
De manier waarop de gebruikers vervolgens de alert binnen krijgen wordt gevoed vanuit een alert template. In de templates wordt gedefinieerd hoe de alert eruit ziet. Wordt bijvoorbeeld alleen een titel met een body doorgestuurd of alleen een link naar de nieuwe items. Deze templates zijn gedefinieerd in het bestand AlertTemplates.xml. Het standaard pad naar de AlertTemplates.xml is: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\XML.
Voor alle standaard soorten lijsten is een AlertTemplate aanwezig. Is er geen template voor een type lijst, dan valt SharePoint terug op de templates GenericList. Een overzicht van de templates en waar deze voor gebruikt worden staat hieronder:
|
Alert Template Name |
Description |
|
SPAlertTemplateType. GenericList |
The first alert template in Alerttemplates.xml. GenericList |
|
SPAlertTemplateType. DocumentLibrary |
Notification of changes in document libraries |
|
SPAlertTemplateType. Survey |
Notification of changes in surveys |
|
SPAlertTemplateType. Links |
Notification of changes in links |
|
SPAlertTemplateType. Announcements |
Notification of changes in announcements |
|
SPAlertTemplateType. Contacts |
Notification of changes in contacts |
|
SPAlertTemplateType. Events |
Notification of changes in events |
|
SPAlertTemplateType. Tasks |
Notification of changes in tasks |
|
SPAlertTemplateType. DiscussionBoard |
Notification of changes in discussion boards |
|
SPAlertTemplateType. PictureLibrary |
Notification of changes in picture libraries |
|
SPAlertTemplateType. XMLForm |
Notification of changes in XML form |
|
SPAlertTemplateType. DataConnectionLibrary |
Notification of changes in data connection libraries |
|
SPAlertTemplateType. AssignedtoNotification |
Assigned to task / issue list notifications |
Wanneer je eigen templates wilt toevoegen, dan wordt het afgeraden om direct in de Alerttemplates.xml aanpassingen te doen. Deze worden namelijk overschreven bij een upgrade of installatie van Service Packs.
Maak de aanpassingen in een copy van de Alerttemplates.xml of gebruik stsadm –o updatealerttemplates om nieuwe custom alert templates toe te voegen aan SharePoint.
Meer informatie over custom alert templates: customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0
Leave a Comment







