Benutzer:Elkuku/Proyektz/EasyCreator/EasyERD/AlphaTEST

Aus Joomla! Dokumentation

Wechseln zu: Navigation, Suche

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.

Wizard step three

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

Bild:ECR_Autocode_list_1.png

Form view

Bild:ECR_Autocode_form_1.png

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:

Bild:ECR_Autocode_ERD_0.png

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

Bild:ECR_Autocode_list_edit.png

viewform edit

Bild:ECR_Autocode_form_edit.png

After

Your code has been adjusted. More options will follow.

List view

Bild:ECR_Autocode_list_2.png

Form view

Bild:ECR_Autocode_form_2.png

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

Persönliche Werkzeuge
Team Navigation