Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

On the alerts dialog page for a list, can the default change type be configured to be "New Items added" instead of "All changes" for everyone.

Can this be done through subnew.aspx which under the _layouts? Is it possible to customize it even?

share|improve this question
    
Can you reframe your question? –  NLV Oct 14 '11 at 9:09

3 Answers 3

Yes it could be done by directly editing the subnew.aspx page, but I tend to stay away from editing internal files for several reasons (like support from Microsoft). Although the approach mentioned by Kit Menke is supported by Microsoft, it creates additional burden because you have to maintain a copy of each layouts file and keep them synchronized in case they change with a service pack or cumulative update.

Instead I'd recommend the approach outlined here http://sharepointmagazine.net/articles/custom-page-security-using-sharepoint-delegate-controls with a DelegateControl.

Inside your DelegateControl you're going to check if it is invoked on the page you are looking for and then you can carry out e.g. a jQuery to toggle the selection of your choice.

I've been using this approach now for many years with SharePoint 2007 and 2010 without problems.

share|improve this answer

If you want to customize a file in the _layouts directory, take a look at How to customize application pages in the Layouts folder in SharePoint.

It looks like you would be able to create a copy of the _layouts folder and then configure IIS to point there instead.

As it mentions in the article, the changes are unsupported and may be difficult to maintain in the future since the files could be updated by a patch. That being said, you could probably at least deploy them in your solution file.

share|improve this answer

I also recommend the approach with customization via Delegate Control.

Steps for customizing Alert subscription pages (New|Edit):

  1. Create Manifest file for registration of SendAlertsManager control via Delegate Control

     <?xml version="1.0" encoding="utf-8"?>
        <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
          <Control
              Id="AdditionalPageHead"
              Sequence="80"
              ControlSrc="~/_controltemplates/SendAlertsManager.ascx">
          </Control>
        </Elements>
    
  2. Implement SendAlertsManager User Control

    public class SendAlertsManager : UserControl
    {
    
            protected override void OnLoad(EventArgs e)
            {
                if (IsAlertNewPage || IsAlertEditPage)
                {
                   //define your custom logic for Alert subscription page here
                }
    
            }
    
            #region Properties
    
            private bool IsAlertNewPage
            {
                get
                {
                    return
                        (Context.Request.Url.PathAndQuery.IndexOf("_layouts/subnew.aspx",
                                                                  StringComparison.InvariantCultureIgnoreCase) > 0);
                }
            }
    
            private bool IsAlertEditPage
            {
                get
                {
                    return
                        (Context.Request.Url.PathAndQuery.IndexOf("_layouts/subedit.aspx",
                                                                  StringComparison.InvariantCultureIgnoreCase) > 0);
                }
            }
    
            #endregion
    }
    

You could find the working solution for customizing Alert subscription New and Edit forms in this post

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.