Added the feature to use admin and custom admin views as the dashboard of the back-end of a component, requested in gh-148

This commit is contained in:
2018-03-09 05:26:44 +02:00
parent 417076243d
commit 34efe32002
49 changed files with 4086 additions and 3517 deletions

View File

@ -1135,10 +1135,10 @@ class Get
{
$component->readme = '';
}
// set lang now
$nowLang = $this->lang;
$this->lang = 'admin';
// dashboard methods
$component->dashboard_tab = (isset($component->dashboard_tab) && ComponentbuilderHelper::checkJson($component->dashboard_tab)) ? json_decode($component->dashboard_tab, true) : null;
if (ComponentbuilderHelper::checkArray($component->dashboard_tab))