sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

ClientSideExtension.ListViewCommandSet.ContextMenu for ContentType

Open sprider opened this issue 9 years ago • 8 comments

Category

  • [ ]Idea

Desired Behavior

Can I add custom menu for item in list / library, but only for concrete content type?

Business Case

This will help the developers to add list item context menu, also known as the Edit Control Block (ECB) menu, to include an item that initiates the Word Automation Services document conversion job.

Example image

https://github.com/SharePoint/sp-dev-fx-extensions/issues/13#issuecomment-310012779

sprider avatar Jun 22 '17 13:06 sprider

Hey @sprider - I don't believe you can target a CustomAction to a single content type, but one workaround would be in your commandset extension take a look at the selected item and only set the visibility to true if it meets your requirements. Let me know if you need more direction to do that.

patmill avatar Jun 23 '17 18:06 patmill

Hi @patmill - Thank you Pat.

That is a good idea. Vesa mentioned that it is a good idea to have content type based and may include in future.

Let us see.

sprider avatar Jun 23 '17 22:06 sprider

@ahackettms FYI

octogonz avatar Jun 26 '17 22:06 octogonz

How to allow Commandset to work for both Custom Lists and Document Libraries (Template type 100 and 101)? Thanks!

vandanamuc avatar Oct 20 '17 08:10 vandanamuc

@vandanamuc Two registrations in the elements.xml... one for each type of list, but using the same component.

andrewconnell avatar Oct 20 '17 09:10 andrewconnell

@andrewconnell - Thanks a lot for the response. Will try this option.

vandanamuc avatar Oct 20 '17 11:10 vandanamuc

We closed this issue as it had not activity within last 180 days. This is a generic process we have decided to perform for issues, which have not been explicitly marked still to be "work in progress" based on tags. We are performing this cleaning to make sure that old issues that have already been solved (but not closed) or are no longer relevant are cleaned out and make the issues more manageable. If this issue still valid, we would ask you to open a new issue and follow the guidance in the issue template related on the recommended location. We do apologize any inconveniences this might cause. Please do remember that issues in the issue lists are also messages for others in the community, so you can also check if you can assist on any of them. “Sharing is caring!”

spdevdocs avatar Apr 29 '18 12:04 spdevdocs

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 29 '20 06:01 msft-github-bot