mrtopher / dashEE

Control panel dashboard framework for EE CMS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clashes with "Zoo Flexible Admin" add-on

mrtopher opened this issue · comments

dashEE does not work with Zoo Flexible Admin also installed.

Need to append JS from other add-ons to dashEE JS in order for it play well with other add-ons.

Still appears to be an issue after fix.

Yea, I've had similar problems with his addon too. I've requested that Zoo Flex Admin extension be run Priority->9 instead of Priority->1 because I've had issues with ZFA and Zenbu for the same reason.

The only fix for me is to edit ext.zoo_flexible_admin.php and change the priority on line 48 to 9.

I'm still not too sure what the solution to this problem is... I've been in touch with the guys from ZFA on Twitter and I thought we were good but it appears to still be an issue.

Is there still no fix for this?

I'd love to be able to run ZFA and Dashee together, but ZFA menu bar doesn't show.

Ah, thanks for this. I was unsure if it was fixed or not myself as I don't use ZFA.

Are you running the latest EE (2.6.x)?

Yeah running 2.6.1 with latest versions / builds of ZFA and Dashee.

Using Dashee & ZFA together would be amazing. I use both for eCommerce sites I run through EE, and I can show my clients the latest orders / members on the dashboard, but also customise the navigation so they can manage products easier. Bliss.

I think I have a solution but I don't want to push it without testing.

    public function crumb_remap()
    {
        $this->_EE->load->model('dashee_model');
        $url = $this->_EE->dashee_model->get_module_url();

        $js = '';

        // If another extension shares the same hook
        if ($this->_EE->extensions->last_call !== FALSE)
        {
            $js = $this->_EE->extensions->last_call;
        }

        $js .= "
            $().ready(function() {          
                $('ul#navigationTabs li.home a').attr('href', '" . htmlspecialchars_decode($url) . "');
                $('#breadCrumb ol li:nth-child(2) a').attr('href', '" . htmlspecialchars_decode($url) . "').html('Dashboard');
                $('#breadCrumb ol').show();
            });
        ";

        return $js;
    }

Could you replace the crumb_remap function in the ext.dashee.php file (line 89) with the above and see if that doesn't solve the problem?

Works a charm! Both seem to be working with each other now.

Great, thanks for the confirmation!