diff --git a/001-Hello-World-with-Joomla-Component-Builder.md b/001-Hello-World-with-Joomla-Component-Builder.md index f34a723..621507c 100644 --- a/001-Hello-World-with-Joomla-Component-Builder.md +++ b/001-Hello-World-with-Joomla-Component-Builder.md @@ -23,6 +23,9 @@ Let's compile it. I am going to compile this and install it into Joomla. For ins All of this was done with just a few clicks and the result is a workable component which is now installed. If you look at the code you'll see the installer script of the hello world component. It adds the whole component into the content types and also into all the relevant areas. It also checks to see that we are at version 3.6 of Joomla!. It has also created the greeting table and modules. It has created helper structures. There is a helper class that was set up which has many features, functions and methods. Browse through the helper class in here if you know PHP. There is a very helpful method used in the code that grabs one value from the database. There are many functions in here which you can now use in your component by simply calling the helper class. This is what the application does and there is a MySQL folder with a few MySQL files, and one PHP file. It is very basic but JCB built hello world in a very short time. Look through this folder and learn the structures and exactly how you know you need to have the components. +### Add a Front End to this Component +[12:15](https://youtu.be/1KBBtQUxMTc?t=737) **Create an admin view** _Create an admin view and link fields to database_. + For the next part of the tutorial we will focus on adding a front end to this component and you must remember that We left the front end open ended because we want to allow developers to be able to express themselves in unique ways and not have a cookie cutter receptacle that just gets used over and over. JCB allows diversity and differences between components that are built with JCB only look similar in the admin area. The site area can look completely different from anything else. To avoid the sameness means a lot of custom coding is needed for the site area. You need to know PHP at a more advanced level and how Joomla! works to make this work. I'm going to give you the quickest and shortest path to getting a site area which first can display the items and second can edit them. The first thing to build when we are setting up the front end is a dynamic get. It is used in JCB to access various tables and combine their data sets. It also delivers them to the front end of any site view. You can reuse them and add multiples of them. For this example I am going to build a very simple one. First I'm going to have it read a list and I'm going to make sure this is a list query. Next I am linking it to an admin area view, greetings. I am going to have it retrieve all the data. I'm going to say no I don't want Pagination And I'm gonna just have one WHERE filter Basically published here copy that and put it in here and say when published equals 1. Just grab published items and nothing else and there we go grabbing all the data from this one table and we are putting it on the front just filtering it with the swear option and you can join other tables related with this data but I'm not gonna go into depth here. Just quickly and briefly so here we go; reading list is done So there is a hug Reading This