Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3218722
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:33:40+00:00 2026-05-17T15:33:40+00:00

I am creating an Item in my dropdown to go to an application page

  • 0

I am creating an Item in my dropdown to go to an application page I created. The option in the dropdown is added to the context menu for items with spesified content types. However, i seam to have hit a small snag.

<CustomAction Id="UserInterfaceCustomActions.DocumentMigrateToLocation"
RegistrationType="ContentType"
RegistrationId="0x0101"
Location="EditControlBlock"
Sequence="500"
Title="Migrate document to location">
<UrlAction Url="~sitecollection/_layouts/ContentMigrationTool.aspx?listId={ListId}&amp;ItemId={ItemId}"/>

This added an option to the menu for all Document content types (0x0101 + children). This is perfect, because I need the option on word documents. Unfortunatly I don’t want the option to be on lets say a Picture content type (0x010102).

How can I have the option available for word documents (0x0101) and not on some of its children content types (Ex.: 0x010102)?

Thank you in advance,
Edouard

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:33:40+00:00Added an answer on May 17, 2026 at 3:33 pm

    I’m thinking you have a couple options, given that you aren’t given much flexibility when it’s an ECB CustomAction:

    1. Explicitly define a CustomAction for all Document & descendant content types except for Pictures.

    2. Some kind of craziness involving creating another CustomAction, this time with a ControlAssembly/Class, which checks the content type of SPContext.Current.List, and emits JavaScript to hide all links containing the above href if it’s a Picture library.

    Other than that I’m afraid I’m drawing blanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a menu and assigning images to menu items, sometime first item
I'm creating a dynamic dropdown list on my page. When an option is selected
When creating a standard Rails dropdown menu how do you set which item in
I am new to creating work item types in TFS and want to create
When creating a new item - Web Form using Master Page I get a
Is there a way to automatically generate a menu item when creating a K2
How can I go about creating a control that has items in item that
I am creating a dropdown menu using a table. I am adding the jQueryUI-provided
I'm using jquery to animate a dropdown menu. The children of a menu-item are
I'm creating an application in hibernate where i need to create a dropdown list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.