in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

New option in drop down - List Type ID

Last post 09-23-2008 8:18 AM by Bjørn Furuknap. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-22-2008 4:25 AM

    New option in drop down - List Type ID

    Hi All,

     I'm trying to add a new option in the drop down menu for lists. I've managed to do it succesfully for lists which I know the registrationid for ie. a contacts list is 105.

    Heres some of the code I used -

    <?xml version="1.0" encoding="utf-8" ?>

    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">

    <CustomAction Id="ECBItemToolbar"

    RegistrationType="List"

    RegistrationId="105"

    ImageUrl="/_layouts/images/ICDOC.GIF"

    Location="EditControlBlock"

    Sequence="225"

    Title="Build Customer Document">

    <UrlAction Url="~site/_layouts/BuildCustomerDoc.aspx?ItemId={ItemId}&amp;ListId={ListId}"/>

    </CustomAction>

     

    </Elements>

     How do I find out the registrationid for a customlist, I've tried using the solution generator to check the schema.xml for the custom lists but i'm not sure what property I should be looking at.

     Is this even possible?

     Thanks in advance

  • 02-28-2008 2:54 PM In reply to

    • daves
    • Not Ranked
    • Joined on 02-28-2008

    Re: New option in drop down - List Type ID

  • 09-23-2008 1:53 AM In reply to

    Re: New option in drop down - List Type ID

    But what if we have two custom lists and we want to add different ECB Menu items for each? So, what would be registrationId for each?
  • 09-23-2008 8:18 AM In reply to

    Re: New option in drop down - List Type ID

    Hello,

    If you create your own list templates then you can attach the custom action to any list created with that template.

    You can also connect a custom action to a content type so you can have different ECBs for different content type items, or even to file types.

    The registrationid is based on what you enter as the registrationtype. You can see a great set of examples on MSDN at http://msdn.microsoft.com/en-us/library/ms473643.aspx

    .b

    My new book is now available for pre-order at Amazon!
    Blog for my new developer book on the SharePoint User Experience


    My SharePoint blog with articles, reviews, and code samples.

    Anonymized questions and answers may be posted to my blog.

    If, after a few days, I have not responded to a thread in which you have requested my assistance, please let me know by email furuknap<[at]>gmail.com. I am not ignoring you but I do get 20-30 requests each day and some responses might be lost.
Page 1 of 1 (4 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.