VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: marciopati on October 12, 2014, 16:42:38 PM

Title: How do I setup manifest file to add a component under administrator/components?
Post by: marciopati on October 12, 2014, 16:42:38 PM
Hello, all,

I have developed a component to act within the shoppers area of the Virtuemart administration application. It is basically one controller and one view, with its corresponding template.

My question is: how can I create a package and the manifest file to be able to install these files under "administrator/components/com_virtuemart/controller" and "administrator/components/com_virtuemart/views", please? Is it even possible?

Thanks,
Márcio.
Title: Re: How do I setup manifest file to add a component under administrator/components?
Post by: GJC Web Design on October 12, 2014, 19:58:25 PM
Never tried this particually - but maybe a simple plugin install that runs an install.php to place your files under the com_virtuemart?
Title: Re: How do I setup manifest file to add a component under administrator/components?
Post by: Milbo on November 16, 2014, 10:57:16 AM
Marciopati, you shoult not do that. You can either create a plugin to add custom views, or create a component. There is no need todo it the dirty way and copy it into. Use the trigger "onVmAdminController"

http://docs.virtuemart.net/tutorials/development/84-extension-plugins.html