Benutzer:Elkuku/Proyektz/EasyCreator/EasyERD/AlphaTEST

Aus Joomla! Dokumentation
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

[Bearbeiten] 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.

[Bearbeiten] 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 ? ...

[Bearbeiten] Configuring back end views

[Bearbeiten] 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

ECR Autocode list 1.png

Form view

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.

[Bearbeiten] Editing

Go to Project->Tables (name will change !). You will be presented with the following:

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

ECR Autocode list edit.png

viewform edit

ECR Autocode form edit.png

[Bearbeiten] After

Your code has been adjusted. More options will follow.

List view

ECR Autocode list 2.png

Form view

ECR Autocode form 2.png

[Bearbeiten] 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

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Sonstiges
Team Navigation
Werkzeuge