Skip to content

How can I add action to Actions of the ContentItem and hide a certain action of the ContentItem,please? #15760

Closed Answered by douwinga
effapp asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to use RenderWhen to handle showing a button only for a specific content type. Something like this

 return Shape("MyAdditionalActionButton_SummaryAdmin__Button__Actions", new ContentItemViewModel(contentItem))
     .Location("SummaryAdmin", "ActionsMenu:10")
     .RenderWhen(() => Task.FromResult(contentItem.ContentType == "MyContentType"));

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@effapp
Comment options

@douwinga
Comment options

Comment options

You must be logged in to vote
1 reply
@douwinga
Comment options

Answer selected by effapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants