Disable "Import content from template" button in Joomla!

andrewatya
34 Posts
andrewatya posted this 22 November 2017

Hi,
Is it possible to disable the "Import content from template" button in the template style editor in Joomla! Admin?
It would be a user-security option to avoid overwriting the whole content of the page!!!
If there any file option or set to disable it, it would be very useful!!!
Thanks in advance!
András

Hi, Is it possible to disable the "Import content from template" button in the template style editor in Joomla! Admin? It would be a user-security option to avoid overwriting the whole content of the page!!! If there any file option or set to disable it, it would be very useful!!! Thanks in advance! András
Vote to pay developers attention to this features or issue.
6 Comments
Order By: Standard | Newest
thfischbach
29 Posts
thfischbach posted this 23 November 2017

Hi,
delete or rename the editor.zip file in /templates/yourt_template_name/plugins.

Tom

Hi, delete or rename the editor.zip file in /templates/yourt_template_name/plugins. Tom
andrewatya
34 Posts
andrewatya posted this 23 November 2017

Hi Tom,
Thank you for your help. But I didn't find any 'editor.zip' file in this folder. I found 3: 'exportimport.zip' /
'content.zip' / 'button.zip' If I delete anyone, it causes that in the JAdmin template editor disables the "Install plugins" button only. The "Import..." button is still active.
Any idea? Thank you!
András

Hi Tom, Thank you for your help. But I didn't find any 'editor.zip' file in this folder. I found 3: 'exportimport.zip' / 'content.zip' / 'button.zip' If I delete anyone, it causes that in the JAdmin template editor disables the "Install plugins" button only. The "Import..." button is still active. Any idea? Thank you! András
César M.
14 Posts
César M. posted this 23 November 2017

Hi,
Is it possible to disable the "Import content from template" button in the template style editor in Joomla! Admin?
It would be a user-security option to avoid overwriting the whole content of the page!!!
If there any file option or set to disable it, it would be very useful!!!
Thanks in advance!
András

Sorry my English is not very good ..
If there is a way, very simple, but every time you edit or save your template you should adjust it.
enter the "templateDetails.xml" file of your template, you can do it from the template editor in joomla.
and comment or delete the following line

field name = "content" type = "import" label = "TPL_IMPORTCONTENT" description = "TPL_IMPORTCONTENT_DESCRIPTION" text = "TPL_IMPORTCONTENT_TEXT" />

With that, it simply leaves the joomla admin.
This way you can hide or delete the other buttons.
To also I would like that this type of buttons did not appear or at least there was a selection mode to decide if you put them or not ..
I use this trick to prevent my clients from manipulating the templates.
I hope it helps.

a hug.

> Hi, > Is it possible to disable the "Import content from template" button in the template style editor in Joomla! Admin? > It would be a user-security option to avoid overwriting the whole content of the page!!! > If there any file option or set to disable it, it would be very useful!!! > Thanks in advance! > András Sorry my English is not very good .. If there is a way, very simple, but every time you edit or save your template you should adjust it. enter the "templateDetails.xml" file of your template, you can do it from the template editor in joomla. and comment or delete the following line field name = "content" type = "import" label = "TPL_IMPORTCONTENT" description = "TPL_IMPORTCONTENT_DESCRIPTION" text = "TPL_IMPORTCONTENT_TEXT" /> With that, it simply leaves the joomla admin. This way you can hide or delete the other buttons. To also I would like that this type of buttons did not appear or at least there was a selection mode to decide if you put them or not .. I use this trick to prevent my clients from manipulating the templates. I hope it helps. a hug.

Last edited 23 November 2017 by César M.

thfischbach
29 Posts
thfischbach posted this 23 November 2017

Hello again,
I think I did not really understand what Andreas meant. For safety reasons, my clients always get the template from me without the template-editor, to avoid that the customer changes something unintentionally.

If then the template is installed, the content.zip exists in the directory mentioned by me. If the template editor is present there is no content.zip.

If your template is finished you should export it without editor and install it to Joomla. Then you can delete the content.zip to make sure that no content can be importet from the template.

Hello again, I think I did not really understand what Andreas meant. For safety reasons, my clients always get the template from me without the template-editor, to avoid that the customer changes something unintentionally. If then the template is installed, the content.zip exists in the directory mentioned by me. If the template editor is present there is no content.zip. If your template is finished you should export it without editor and install it to Joomla. Then you can delete the content.zip to make sure that no content can be importet from the template.
andrewatya
34 Posts
andrewatya posted this 23 November 2017

Thanks for help! I will try to comment this lines to prevent pressing this line. I only make chenges on my template, but it is more safe to me if I can not be able to press this button.
Thanks
Andras

Thanks for help! I will try to comment this lines to prevent pressing this line. I only make chenges on my template, but it is more safe to me if I can not be able to press this button. Thanks Andras
rosiewilsonnsjh
2 Posts
rosiewilsonnsjh posted this 2 days ago

Click on Users and then on Groups in the Joomla! admin page drive mad 2. Make a new user group (like "Limited Editors") or change a current one. Permissions should be set for this group so that they can't use the "Import content from template" tool.

Click on Users and then on Groups in the Joomla! admin page [drive mad 2](https://drivemad2.io/). Make a new user group (like "Limited Editors") or change a current one. Permissions should be set for this group so that they can't use the "Import content from template" tool.
You must log in or register to leave comments