Page 1 of 1

Joomla 4 Component Tutorial

Posted: Sat Aug 10, 2019 9:14 am
by ceford
About 10 days ago I asked for information on Joomla 4 Component Structure. Nothing definitive came up so I set about learning how to code a pure Joomla 4 component. I have progressed far enough to write Part 1 of a 2 Part tutorial. I can't post it on Joomla docs because it thinks it is spam. So I have posted it on my personal web set (http://fford.me.uk/mw/index.php?title=J ... _Site_Code).

I composed the tutorial as a Joomla 4.0 Alpha 10 article and then passed that through Pandoc to create a MediaWiki format file. I am looking for feedback. Are there glaring mistakes or misunderstandings? Is it too premature? Would it be useful to developers switching to Joomla 4? Should I carry on with Part 2?

Re: Joomla 4 Component Tutorial

Posted: Sat Aug 10, 2019 1:54 pm
by H13
Hi,
Are there glaring mistakes or misunderstandings?
I cannot say as I don't know the MVC of Joomla! 4
Is it too premature?
No
Would it be useful to developers switching to Joomla 4?
There is still the option to use old MVC, so for some developers the first task will be to make their extensions ready for Joomla! 4 with old MVC. But they can start with overwriting to new MVC, even novices can start with new MVC.
Should I carry on with Part 2?
Yes. I find the guide great.

Jan

Re: Joomla 4 Component Tutorial

Posted: Sat Aug 10, 2019 2:57 pm
by gws
@ ceford please carry on.

Re: Joomla 4 Component Tutorial

Posted: Sun Aug 11, 2019 8:58 pm
by wilsonge
Thankyou so much for writing this. It’s definitely not too early as were going to look to move to beta soon. I’ll try and review it over this week and give you any feedback I have

Definitely looking forward to seeing a part 2

Can you DM me and I’ll make sure your account is whitelisted on the main joomla docs so you can put your hard work there

Kind Regards,
George

Re: Joomla 4 Component Tutorial

Posted: Mon Aug 19, 2019 10:24 pm
by astridx
I have just read this post. Thank you very much for the tutorial. I was looking for something like this, too.
I've created a sample tutorial and boilerplate for me to get to know Joomla 4.

I did not create a real world example. I have rather looked at the various issues like

https://docs.joomla.org/User:Astridx#De ... t_-_Part_1

https://docs.joomla.org/User:Astridx#Ad ... t_-_Part_3

https://docs.joomla.org/User:Astridx#Us ... d_-_Part_6

https://docs.joomla.org/User:Astridx#Us ... s_-_Part_8

https://docs.joomla.org/User:Astridx#Ad ... n_-_Part_9

https://docs.joomla.org/User:Astridx#Ad ... _-_Part_10

https://docs.joomla.org/User:Astridx#Ad ... -_Part_11a

https://docs.joomla.org/User:Astridx#Ad ... -_Part_11b

https://docs.joomla.org/User:Astridx#Ad ... _-_Part_12

https://docs.joomla.org/User:Astridx#Ad ... _-_Part_13

https://docs.joomla.org/User:Astridx#Ad ... -_Part_14a

https://docs.joomla.org/User:Astridx#Ad ... -_Part_15a

https://docs.joomla.org/User:Astridx#Ad ... _-_Part_16

https://docs.joomla.org/User:Astridx#Ad ... _-_Part_17

docs.joomla.org/User:Astridx#Adding_Params_-_Part_18

docs.joomla.org/User:Astridx#Adding_Pagination_-_Part_19

docs.joomla.org/User:Astridx#Adding_a_Layout_-_Part_20

docs.joomla.org/User:Astridx#Adding_Checkout_-_Part_21

docs.joomla.org/User:Astridx#Adding_a_batch_process_and_alias_-_Part_22

docs.joomla.org/User:Astridx#Adding_a_help_link_-_Part_23

docs.joomla.org/User:Astridx#Adding_an_update_server_and_a_changelog-_Part_24


and implemented in a com_foo.

If you are interested you can find my sample code in this repository: https://github.com/astridx/boilerplate
In the folder src there is the finished code/boilerplate. The tutorial folder has sub folders for each chapter.

I am looking for feedback, too.

Re: Joomla 4 Component Tutorial

Posted: Wed Aug 21, 2019 9:16 am
by ceford
This tutorial and accompanying code and zip file have moved to Github:

https://github.com/ceford/j4xdemos-com-mywalks

Re: Joomla 4 Component Tutorial

Posted: Sat Aug 24, 2019 6:46 pm
by H13
astridx
ceford

+1

Re: Joomla 4 Component Tutorial

Posted: Sat Aug 24, 2019 8:35 pm
by gws
Yes,thank you both.