I've added a custom section to the dashboard using dashboard.config just fine. What I can't find how to do is add a button to the toolbar just below the tabs similar to save, save publish. What is the xml for this and how are actions executed?
//Use the SpeechBubble method on page to show the message
((
BasePage)Page).speechBubble(BasePage.speechBubbleIcon.success, "Message to the user", message);
}
}
}
}
The trick is to cats the Parent as a Tabpage. The Tabpage holds a reference to the menu, so you can use that to add MenuImageButtons(in this case a button save) And you can add event handlers to that button_save action. That is done in the _buttonSave_Click handler which shows you the speechbubble message, but you can also use this as a hook to provide your own save mechanism.
Adding Custom Section Toolbar Button in Dashboard
I've added a custom section to the dashboard using dashboard.config just fine. What I can't find how to do is add a button to the toolbar just below the tabs similar to save, save publish. What is the xml for this and how are actions executed?
Hi Dunk,
I think you need to manually add this to the "umbracoApp" table:
The fields in the table are:
The icons are then defined in the umbracoGui.css file:
Cheers,
Chris
Do you mean a normal umbraco menu?
I've managed to to that. I did a demo about this on the Benelux Meetup here's my code.
ASCX File:
Code Behind
The trick is to cats the Parent as a Tabpage. The Tabpage holds a reference to the menu, so you can use that to add MenuImageButtons(in this case a button save) And you can add event handlers to that button_save action. That is done in the _buttonSave_Click handler which shows you the speechbubble message, but you can also use this as a hook to provide your own save mechanism.
Hope this helps you,
Richard
Ah opps!
Just realised I miss read your original question!
Appologies for my miss-leading answer, hopefully it was still helpful for someone :)
Cheers,
Chris
Thanks, Richard! Saved me alot of work. ;-)
is working on a reply...