Benutzer:Elkuku/Proyektz/EasyCreator/EasyERD/AlphaTEST
Aus Joomla! Dokumentation
Inhaltsverzeichnis |
Introduction
We will create a custom extension with a custom table. The code then will be modified by "EasyAutoCode" which is controlled by simple forms.
Creating the extension
1. Execute the wizard (new project...) and select the ExtensionTemplate component Categories
2. Choose a name (for our example type CategoryTest) and a version number, as usual.
3. In step three you can define your custom table. Some fields have been predefined by the ExtensionTemplate to ensure the proper functionality of the ExtensionTemplate.
For our example now push the "Add row" button three times and fill the fields as indicated in the screen shot.
Hit "Create".
Easy eh ? ...
Configuring back end views
Before
Now execute the component by it's backend menu link. You should see the following list layout. Clicking "New" will bring up the form view.
| List view | Form view |
You will notice that all the table fields are included in both the list and the form view. We will change this now.
Editing
Go to Project->Tables (name will change !). You will be presented with the following:
Click on admin/viewform and admin/viewlist and make the following changes: (screenshots very WIP !!)
We will hide the "Primary key" and the "Checked out" field.
| viewlist edit | viewform edit |
After
Your code has been adjusted. More options will follow.
| List view | Form view |
Configuring front end views
To actually see something in the front end, you have to
- create a category.
- Introduce some data.
- Create a menu link
Please do this now.
You will see 'viewcategory' and 'viewitem' for the front end (site) part in the Project->Tables section.
Adjust them to suite your needs








