0

I am making a plugin for a custom component. It's a basic editor extend plugin that allows users to select an item from custom component using a button in editor. It's simular to native editor extend buttons to add link to article, menu and contact items.

To do this, I need to add a modal.php file to my components view tmpl folder. Should I update the component to add the new tmpl file? Or is it possible to add the file on plugin installation?

2
  • If it's your custom component, add the file on component installation/update process. Yes, it's possible to perform any operation on plugin install as well, including copying files where you need. Check for example (it works the same for any extension): docs.joomla.org/J3.x:Creating_a_simple_module/… – AHeavyObject Aug 1 '20 at 13:15
  • Thanks @AHeavyObject I will check that out. – TVBZ Aug 2 '20 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.