Added the option to clone a Component and all its linked data, also to import a JCB package without merging with local Component

This commit is contained in:
2018-04-17 23:25:03 +02:00
parent dfff74989e
commit 0dc22b100b
11 changed files with 578 additions and 273 deletions

View File

@ -143,6 +143,11 @@ class ComponentbuilderViewJoomla_components extends JViewLegacy
{
// add Backup button.
JToolBarHelper::custom('joomla_components.backup', 'archive', '', 'COM_COMPONENTBUILDER_BACKUP', false);
}
if ($this->user->authorise('joomla_component.clone', 'com_componentbuilder'))
{
// add Clone button.
JToolBarHelper::custom('joomla_components.cloner', 'save-copy', '', 'COM_COMPONENTBUILDER_CLONE', false);
}
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))