DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Administrator manual

Target group: Administrators

Installation

  1. Install the extension just like any other extension from the TYPO3 extension repository.
  2. Create a page where you want to view the calendars of the booking objects
  3. Insert the plugin to the page and set the startingpoint to the page/folder were you want to store the data.
  4. The extension works with jquery, if not already included in your website include the jquery library with the flexform settings
  5. Now, create some booking objects with the list modul of TYPO3 in your record storing page.
  6. In the field Duty hours enter a comma separated list of the duty hours of the object.
  7. That's all, you can view the page for booking now.
  8. A click on a date will lead you to the booking form where a frontend user can book the object.
Booking object

Reference

plugin.tx_booking_pi1

templateFile

Property

templateFile

Data type

string

Description

Define the template file

Default

typo3conf/ext/booking/pi1/template.html

cssFile

Property

cssFile

Data type

string

Description

Define the css file

Default

typo3conf/ext/booking/pi1/layout.css

enableQuarterHourBooking

Property

enableQuarterHourBooking

Data boolean

0

Description

If set, quarter hour booking is enabled

Default

limitPreviewToDays

Property

limitPreviewToDays

Data int

Description

If set, limit the preview to n days

Default

Hooks

There are two hooks in the bookingFormView implemented. BookingFormHeaderHook and bookingFormDataHook.

These hooks can be called from your extension like this: in your localconf.php // hook for booking

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['booking']['bookingFormHeaderHook'][] = 'EXT:bookinghooks/pi1/class.tx_bookinghooks_pi1.php:tx_bookinghooks_pi1';

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['booking']['bookingFormDataHook'][] = 'EXT:bookinghooks/pi1/class.tx_bookinghooks_pi1.php:tx_bookinghooks_pi1';

And the functions

function bookingFormDataHook(&$marks, $row, $conf, $obj) {
...
}

function bookingFormHeaderHook(&$marks, $row, $conf, $obj) {
        $marks['###DELETE###']= 'xxx';
}

FAQ

Updating from booking 0.3.8

A table name have changed from tx_booking to tx_booking_book.

If you want to preserve the old booking data follow one of these steps:

1. When updating from version 0.3.8 dump the table tx_bookings first and then insert the data from tx_booking to the new table tx_booking_book. The data strucure of the new table tx_booking_book is the same as the old table tx_booking.

2. Backup the tables of the extension. Insert the new extension, a new table tx_booking_book is created. Remove this table and rename the old table tx_booking to tx_booking_book.