Skeleton for developing Joomla! Components
Tool to create a custom skeleton of a Joomla! component.
Starting point to start developing.
You can even roll out changes to your test environment as you develop.
- need sudo rights
- build by copying files
- rename command installed
composer install
php ./vendor/bin/phing
php ./vendor/bin/phing -f ./buildfiles/build.xml
php ./vendor/bin/phing -f ./buildfiles/build.xml another_hello
php ./vendor/bin/phing -f ./buildfiles/build.xml build.01_Introduction
php ./vendor/bin/phing -f ./buildfiles/build.xml delete.skeletons
In the web page Developing an MVC Component, you will find a series of articles explaining how to develop a compenent HelloWold for Joomla 3 from scratch. Each article add a new feature to the component HelloWorld. This command, creates a installable copy, with the name you want, for the HelloWorld version you choose:
./vendor/bin/phing -f ./buildfiles/build.from.helloworld.xml create -Dtemplate=01_Introduction -Dcomponent.name=jumer
We recommend this because it has been tested (18_Adding_image):
./vendor/bin/phing -f ./buildfiles/build.from.helloworld.xml create -Dtemplate=18_Adding_image -Dcomponent.name=jumer
Set the property component.name to give the name to the new component:
php ./vendor/bin/phing -f ./buildfiles/build.xml create.from.template -Dtemplate=helloworld -Dcomponent.name=JumerCom1
php ./vendor/bin/phing -f ./buildfiles/build.xml zip -Dcomponent.name=JumerCom1
Install
sudo chmod g+w ~/Documentos/dev/joomla/labs_democracia_online/joomla-lab1/ -R
Change some files & build
php ./vendor/bin/phing -f ./buildfiles/build.xml build -Dcomponent.name=JumerCom1
You will need to clone JComSkeleton in the "tmp" folder of your Joomla installation for this.
/var/www/html/tmp/JComSkeleton/skeletons/JumerCom1