From c1ab2aaf18c1b38b6a72deced1677f41ba2babda Mon Sep 17 00:00:00 2001 From: Joseph Geller Date: Mon, 26 Nov 2018 11:20:07 -0600 Subject: [PATCH] Updated 5. Field Types: 11 23 2018 Work in progress (markdown) --- 5.-Field-Types:-11-23-2018-Work-in-progress.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/5.-Field-Types:-11-23-2018-Work-in-progress.md b/5.-Field-Types:-11-23-2018-Work-in-progress.md index 8a936da..460f0c2 100644 --- a/5.-Field-Types:-11-23-2018-Work-in-progress.md +++ b/5.-Field-Types:-11-23-2018-Work-in-progress.md @@ -16,10 +16,10 @@ After adding some content, save and close the article so we have a list item. Th We could just as well go into Component Builder Since it has the demo application. See a detailed explanation of the demo component and building a local developer environment to run it. After selecting the demo Compile, it displays a warning because we haven't set some options in the global settings. It doesn't mean that there's been an error in the compiling. It just means it couldn't move the file to the git repository. If we deselect some compile options and start again it doesn't give you the same warning. Click install and compiled component gets installed Into this Joomla site. It doesn't have any images because that we don't ship the images with the components. ### Joomla! Component Builder Demo Component -If you click on add a Look It will open the edit and it keeps you on the Look. It also opens a list view where the list of Looks will be displayed. We added an import feature which the standard Joomla! components don't have. We will explain that later. If it's new you can add also text to your radio button. If I add something to the text field it opens an alias field which is also a text field. There is a new Joomla! repeatable field and you can add information to it. This was a quick look at the features in the demo component included with the Joomla! Component Builder when it is installed. The [APPENDIX](https://github.com/vdm-io/Joomla-Component-Builder/wiki/Using-the-JCB-Demo-Component-While-Building-Your-Local-Development-System) has a very detailed, technical explanation of the demo component installation and inner workings plus code, along with step by step instructions on building a local development LAMP environment to run Joomla!, and JCB on. It also explains how to compile and install the demo component using JCB. +If you click on add a Look It will open the edit and it keeps you on the Look. It also opens a list view where the list of Looks will be displayed. We added an import feature which the standard Joomla! components don't have. We will explain that later. If it's new you can add also text to your radio button. If I add something to the text field it opens an alias field which is also a text field. There is a new Joomla! repeatable field and you can add information to it. This was a quick look at the features in the demo component included with the Joomla! Component Builder when it is installed. The [APPENDIX](https://github.com/vdm-io/Joomla-Component-Builder/wiki/Using-the-JCB-Demo-Component-While-Building-Your-Local-Development-System) has a very detailed, technical explanation of the demo component installation and inner workings plus code, along with step by step instructions on building a local development LAMP environment to run Joomla!, and JCB on. + It also explains how to compile and install the demo component using JCB. [06:35](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=6m35s) **Install compiled component** _Installing from within component builder, quick link_ ### How Fields Get Into the Component and Use the Joomla! infrastructure -If we go to Admin views and select Look Open look you'll find the fields we just looked at. The name is used to map the field into the view using the field add button here. Reason why you cannot add using this area is because this is to edit existing fields instead of adding them. So, if you were to open a admin view you can edit them from here especially if you Have many components and many fields. This is a way to look at the fields related to this components. If you were to add more fields you would open this box and this is where you'll be adding them. Let's get back to field types because that's really where it all starts. We've already added all the field types to JCB that I think you will need. +If we go to Admin views and select Look Open look you'll find the fields we just looked at. The name is used to map the field into the view using the field add button here. Reason why you cannot add using this area is because this is to edit existing fields instead of adding them. So, if you were to open a admin view you can edit them from here especially if you Have many components and many fields. + [08:04](https://youtu.be/OhLzvThDXls?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=8m4s) **Admin fields-views edit** _explanation of adding-editing fields_ This is a way to look at the fields related to this components. If you were to add more fields you would open this box and this is where you'll be adding them. Let's get back to field types because that's really where it all starts. We've already added all the field types to JCB that I think you will need. ### Field Types are Mapped Into Libraries Inside of Joomla! Joomla! has many field types and for each field type which you build you need to set certain values in an XML document. These values use a checkbox Set Up in Properties. So, you have to be certain when changing properties that you adjust the corresponding field. This applies only to the checkbox field. Most of the time you would never need to do that. An exception is adding more field types which we haven't covered, or if you want to extend the existing field types. For the most part you should not tinker with field types. I hope this explains where the field type comes from and the amazing scalability produced from its use.