Search code examples
dotnetnuke-module2sxc

Toolbar item for delete - for 2sxc module


I create 2sxc.org app for DNN and don't know how to allow a user to delete the content item?

Is there some toolbar snippet like:

@Edit.Toolbar(Content, actions: "edit,replace")

But also to create delete button?

If there is no such command, how can be manually created? Any guidance?


Solution

  • The full list of actions is listed here

    https://github.com/2sic/2sxc/blob/master/src/inpage/2sxc._actions.js

    So just use

    @Edit.Toolbar(Content, actions: "edit,replace,remove");
    

    The reason is that delete is not implemented yet, as it has some complex & far reaching consequences. So the current button only removes it.