haspo Posted October 21, 2016 Share Posted October 21, 2016 Hi, I found some information about how to do that, but it was hard for me to read, so I didn't understand it. Its possible to to add new button with some function? How to do that? Many thanks! Link to comment Share on other sites More sharing options...
haspo Posted October 21, 2016 Author Share Posted October 21, 2016 My goal is to make a print button there. Any solutions? Link to comment Share on other sites More sharing options...
rocky Posted October 22, 2016 Share Posted October 22, 2016 You need to override the initToolbar() function in your module's controller. For example: public function initToolbar() { parent::initToolbar(); $this->toolbar_btn['print'] = array( 'href' => 'your_url', 'desc' => $this->l('Print') ); } 1 Link to comment Share on other sites More sharing options...
haspo Posted October 22, 2016 Author Share Posted October 22, 2016 thanks, I'll give it a try! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now