Jump to content

Disable add new record button but keep other buttons visible in back-office module management page


Zohaib-fk
 Share

Recommended Posts

Hi,

 

I want to disable button "Add New" and keep "Refresh List", "Show SQL Query" and "Export to SQL Manager" buttons visible on back-office module management page.

 

Below function help to remove "Add New" button but it removed other buttons "Refresh List", "Show SQL Query" and "Export to SQL Manager" as well.

 




   public function initToolbar() {
        parent::initToolbar();
        unset( $this->toolbar_btn['new'] );
    }


I want to remove "Add New" but keep other buttons visible.


 

Any Solution? 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More