.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _admin-manual:
Administrator Manual
====================
This chapter describes how to manage the extension from a superuser point of view.
------------------------
Installing the extension
------------------------
The extension is installed like any other extension via the TYPO3 extension repository.
When installing a new field *tx_addresslist4cal_addresses* is added to the *tx_cal_event* table.
------------------------
TypoScript configuration
------------------------
^^^^^^^^^^
detailPage
^^^^^^^^^^
The TypoScript setting *detailPage* defines the page id of the page with the detail view of an address record.
::
plugin.tx_addresslist4cal.detailPage = 81
^^^^^^^^^^^^^^^
addressUidParam
^^^^^^^^^^^^^^^
The TypoScript setting *addressUidParam* defines the url parameter that passes the uid of the tt_address record
to the detail page.
::
plugin.tx_addresslist4cal.addressUidParam = tx_wtdirectory_pi1[show]
^^^^^^^^^^
dateFormat
^^^^^^^^^^
The TypoScript setting *dateFormat* defines the format of the birthday of an address record.
::
plugin.tx_addresslist4cal.dateFormat = %d.%m.%Y
.. _my-templating-label:
----------
Templating
----------
The templating is done by enhancing the existing cal event template.
In the *event_model.tmpl* file the section **TEMPLATE_PHPICALENDAR_EVENT** has to be enhaced.
The template for displaying every single address record must created inside of the section
**TEMPLATE_PHPICALENDAR_EVENT**.
The marker for the single address template is **ADDRESSLIST4CAL_ADDRESS**. A sample template part looks like this:
::
...
###ADDRESSLIST4CAL###
...
...
###LAST_NAME###, ###FIRST_NAME###