Remove Dashboard Buttons

  • Posts: 3
  • Thank you received: 0
9 years 3 months ago #210674

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.12

Hi,

Is there a way to remove some of the buttons that display in the Hikashop Admin Dashboard in a way that will survive an update. I do not see a view available in the back end for overriding this. I am referring to the buttons located below the reports area. I would like to remove some of the buttons to prevent my client from messing up the site configuration. I will use access control for the other menu items.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 3 months ago #210678

Hi,

Yes, that's possible.
Edit the file "cpanel" of the view "dashboard" for your backend template via the menu Display>Views.
There, you can add such code:

if($btn['text']=='Configuration') continue;
after the line:
foreach($this->buttonList as $btn) {
and that will remove the "Configuration" button.
It will of course survive updates.

The following user(s) said Thank You: hikaphil

Please Log in or Create an account to join the conversation.

Time to create page: 0.050 seconds
Powered by Kunena Forum