-
In the Manager, there is a very useful configuration setting "Collapse blocks" (If blocks should be collapsed by default when opening a page or post in the manager.), which works fine and it is great. My question is, are there "expand/collapse all blocks" buttons in the Manager when editing a page/post/content? I could not find them. If they don't yet exist, I think they could be a nice usability enhancement. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there! You could add to your project by creating a file named
Then in // Custom manager action
Piranha.Manager.Actions.Toolbars.PageEdit.Insert(0, new Piranha.Manager.Extend.ToolbarAction
{
InternalId = "ExpandCollapse",
ActionView = "Partial/Actions/_PageExpandCollapse.cshtml"
}); |
Beta Was this translation helpful? Give feedback.
Hi there! You could add to your project by creating a file named
_PageExpandCollapse.cshtml
in the folder~/Areas/Manager/Pages/Partial/Actions/
in your application. The add the following markup to the file: