I have a requirement to customise the alert template for a standard blog post list. To do this I:
1. Created a copy of alertstemplate.xml
2. Copied the genericList alert template node and customised
3. Registered the new template file against the site collection, iisreset and finally assigned the new Alert template to the list, when alerts are created the custom template is emailed.
The problem now arises that the 'View <Post Title>' in the toolbar section now creates a hyperlink to http..../Lists/Posts/Dispform.aspx?ID=xx rather than post.aspx. I have checked using sharepoint designer that the list supporting files has the
correct display item form of Lists/Posts/Post.aspx.
Additionally if I reset the alert template for the list back to use the Generic list template the same problem still occurs so this leads me to believe it is not the customisations that are the problem.
Code used to assign the alert template to the Posts list:
var ats = new SPAlertTemplateCollection((SPWebService) site.WebApplication.Parent);
var newTemplate = ats[alertName];
if (newTemplate == null)
// We did not find the specified Template.
throw new Exception("Failed to find template SPAlertTemplateType.NewsPost in the template collection.");
list.AlertTemplate = newTemplate;
Any assistance will be most welcome, thanks in advance.
View Complete Post