Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

1.4. Inserting data

There are two ways to insert data to the flatmgr. One is done via the old fashioned way in the List-module. The other way is to add a page to the pagetree, name it for example adminflats and insert the plugin here again and choose in the flexform the display option adminpage. To protect this page from all users except the flatsadmins make this page only accessible for special frontend users.

If you plan to work with booking categories, go to the list module and select the page where you store the booking records and add some booking categories (for example “standard”, “family”, “group”...).

Inserting data the new way

This is the other way. Add a page to the pagetree, name it for example Admin and insert the plugin here again.

Hide this page for normal FE-Users. Important is to choose the same Startingpoint for the plugin as in the normal FE-page where the plugin is located.

In the configuration for the plugin choose “adminpage” as view.

In the booking options you can select the additional fields to use with the flatmgr and you can choose to use XAJAX for the data transfer to the server. Only those fields are displayed ( in the tooltip and the admin page) which are here selected. The tooltips can separately be deactivated (see calendar options).

Important: If you want use tt_address for the customers, you must at least select the field Kundennummer (customernumber) because the uid of the tt_address table is stored in this field. Also you have to check the field addresses from ttaddress (“Adressen von ttaddress”) and select at least one addressgroup below.

Now change to the view-module and select this page.

Here for example is a page which shows  flats named “Belchen” and “Haus Feldberg” and so on.

To go to the bookings, klick on the magnifier.

Select this icon of a flat to go to the bookings of this flat

.Activate this icon if you changed the flatname and/or the flat capacity and want to save the new data

Activating this icon will hide the flat and the bookings belonged to that flat. Unhide can be done in the List-module. Be careful with the recycle bin – clicking on this would hide the flat with the bookings of the flat without further confirm-question.

At the bottom you can insert a new flat to the flatmgr by inserting the flatname and if you decided to use the efficiency view insert also the number of person who can rent the flat at a time.

You can edit the booking data, change start and end dates and the field bookedby (“gebucht von”) of a single booking record by inserting the changes and activating the save icon.

Activating the edit icon display the additional fields which are configured in flexforms. You can edit these additional fields and save the whole data record.

At the bottom of this page you can  insert a new booking data record for this flat.

The extension flatmgr uses here a popup-calendar from the extension rlmp_dateselectlib written by and thanks to Robert Lemke.

Hint: It may be useful to add a second flatmgr content element to the adminpage with one of the months display.

If you got a warning message when you try to save a changed data record then this is because the flatmgr-extension will write history-logs and therefore it needs an active be-user to write to the history tables. Changes will be written to the flatmgr-tables with or without warning message.

I managed this with a modified “dkd_feuser_belogin” extension – see FAQ of this manual.

Inserting data the old way

In the List-module change to the page where the plugin is located or where you want to store the datasets and add some new entries for booking categories, vacation flat and flatbookings. Before you can insert a booking, at least one vacation flat should be present.

Now insert the vacation flats. When you have done, insert the booking data.

Select a vacation and insert first and last day, select or create a category of the booking and insert the desired  number of persons. Then save the whole thing. You can add an memo to booking too.

To get this little calender  you have to install the extension erotea_date2cal.

Now go to the page where the plugin is inserted. Select the booking calender link to show the booking of the selected flat in the calendar.

To get this little calender  you have to install the extension erotea_date2cal.

That's it...Have fun...