Joomla 4 Component Tutorial

Be informed that this forum is not an official support forum for Joomla! 4.0. Any issues regarding Joomla! 4.0 must be reported at https://issues.joomla.org/.

Joomla! 4.0 is still in its Alpha stage. This forum should be used for sharing information about Joomla! 4.0.

Moderator: ooffick

Post Reply
ceford
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Mon Feb 24, 2014 10:38 pm

Joomla 4 Component Tutorial

Post by ceford » Sat Aug 10, 2019 9:14 am

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?

User avatar
H13
Joomla! Ace
Joomla! Ace
Posts: 1485
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: Joomla 4 Component Tutorial

Post by H13 » Sat Aug 10, 2019 1:54 pm

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
- Phoca Gallery - powerful image gallery - http://www.phoca.cz/phocagallery/
- Phoca Restaurant Menu - http://www.phoca.cz/restaurantmenudemo/
- Phoca Cart - e-commerce platform for Joomla!
- Phoca Download - download manager for Joomla!

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3945
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Joomla 4 Component Tutorial

Post by gws » Sat Aug 10, 2019 2:57 pm

@ ceford please carry on.

wilsonge
Joomla! Intern
Joomla! Intern
Posts: 80
Joined: Wed Jan 20, 2010 4:33 pm
Contact:

Re: Joomla 4 Component Tutorial

Post by wilsonge » Sun Aug 11, 2019 8:58 pm

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

User avatar
astridx
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Wed Mar 25, 2015 8:56 am
Location: Germany
Contact:

Re: Joomla 4 Component Tutorial

Post by astridx » Mon Aug 19, 2019 10:24 pm

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.
---
http://www.astrid-guenther.de
---
Don't push the river ... it flows by itself ...

ceford
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Mon Feb 24, 2014 10:38 pm

Re: Joomla 4 Component Tutorial

Post by ceford » Wed Aug 21, 2019 9:16 am

This tutorial and accompanying code and zip file have moved to Github:

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

User avatar
H13
Joomla! Ace
Joomla! Ace
Posts: 1485
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: Joomla 4 Component Tutorial

Post by H13 » Sat Aug 24, 2019 6:46 pm

astridx
ceford

+1
- Phoca Gallery - powerful image gallery - http://www.phoca.cz/phocagallery/
- Phoca Restaurant Menu - http://www.phoca.cz/restaurantmenudemo/
- Phoca Cart - e-commerce platform for Joomla!
- Phoca Download - download manager for Joomla!

gws
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3945
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Joomla 4 Component Tutorial

Post by gws » Sat Aug 24, 2019 8:35 pm

Yes,thank you both.


Post Reply

Return to “Joomla! 4 Related”