Search code examples
magnolia

New export action for pages in magnolia cms


I need to create a new export action for the page app in magnolia cms that would always export selected page elements to a YAML file. I would like to override the class definition and the dialog definition for the existing export action since I do not need a dialog that lets me select YAML or XML. It will always be YAML in my case. I setup a new Maven module and created a new action for the Page app. How do I configure a custom class for this action? How do I get the current context of the page in my class?


Solution

  • You have to remove the dialog attached to the action first. If you plan to have a custom action then simply do not configure one. We already have two actions for those two cases. If you are interested in YAML export use the following: info.magnolia.ui.framework.action.ExportYamlAction