2023-05-19 20:30:39 -07:00
|
|
|
# Joomla
|
|
|
|
|
|
|
|
Joomla CMS.
|
|
|
|
|
2023-05-24 10:43:00 -07:00
|
|
|
Make sure the projectName is set correctly, it's very important, because it's used for git, docker, mysql and joomla.
|
2023-05-20 02:01:52 -07:00
|
|
|
|
2023-05-24 10:43:00 -07:00
|
|
|
## Installation
|
2023-05-19 20:45:06 -07:00
|
|
|
1. Clone me ```git clone git@git.nickyeoman.com:nick/joomla.git projectName```
|
2023-05-20 02:01:52 -07:00
|
|
|
1. cd projectName
|
|
|
|
1. Setup your .env file ```mv env.sample .env``` then edit with your favorite editor.
|
2023-05-20 13:37:56 -07:00
|
|
|
1. Prepare your project for git ```bash bin/new_project.sh```
|
|
|
|
1. Run the containers to initialize ```sudo bash bin/docker_up.sh```
|
2023-05-24 10:43:00 -07:00
|
|
|
1. cli installer ```bash bin/setup_joomla_installer.sh```
|
|
|
|
1. Manually set Site Meta Description in [Administrator](http://localhost:8000/administrator/index.php?option=com_config)
|
2023-05-20 16:06:24 -07:00
|
|
|
1. Run ```sudo bash bin/finalize.sh```
|
2023-05-20 13:37:56 -07:00
|
|
|
|
2023-05-24 10:43:00 -07:00
|
|
|
## Working Environment
|
|
|
|
|
|
|
|
Let's update our bash_profile with some alias:
|
|
|
|
```bash
|
|
|
|
alias joomla='docker-compose exec -u www-data joomla php cli/joomla.php'
|
|
|
|
```
|
2023-05-31 12:25:05 -07:00
|
|
|
Allowing you to just run commands like this:
|
|
|
|
```bash
|
|
|
|
joomla core:check-updates
|
|
|
|
joomla site:down
|
|
|
|
joomla extension:list
|
|
|
|
joomla update:extensions:check
|
|
|
|
joomla cache:clean
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Create A Component
|
|
|
|
|
|
|
|
1. Move to the directory where you would like to keep the component. ```cd ~/joomla-components/```
|
|
|
|
1. Run component creator from your Joomla install. ```bash ~/projects/joomla/projectName/bin/create_component.sh```
|
|
|
|
1. Optionally save to git repo.
|
2023-05-24 10:43:00 -07:00
|
|
|
|
2023-05-20 16:15:40 -07:00
|
|
|
## References
|
|
|
|
|
2023-05-31 12:25:05 -07:00
|
|
|
* [Joomla Twig](https://phproberto.github.io/joomla-twig/)
|
|
|
|
|
|
|
|
### Component
|
|
|
|
|
|
|
|
* https://github.com/ceford/j4xdemos-com-mywalks/tree/master
|
|
|
|
* https://www.abdulwaheed.pk/en/blog/41-information-technology/44-joomla/302-how-to-create-joomla-4-component.html
|
|
|
|
* https://www.techfry.com/resources/how-to-create-joomla-component
|
|
|
|
* https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Introduction
|
2023-05-20 16:15:40 -07:00
|
|
|
* [Develop a component](https://docs.joomla.org/J4.x:Developing_an_MVC_Component/Developing_a_Basic_Component)
|
2023-05-31 12:25:05 -07:00
|
|
|
* [Minimal component](https://joomla.stackexchange.com/questions/22176/minimal-basic-structure-for-a-frontend-joomla-component-without-using-joomla-mvc)
|