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.

EXT: Date/time renderlet for FORMidable

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed:2009-01-03T14:17:12
Author:Oliver Klee
Email:typo3-coding@oliverklee.de
Info 3:
Info 4:

EXT: Date/time renderlet for FORMidable

Extension Key: formidabledatetime

Copyright 2006-2007, Oliver Klee, <typo3-coding@oliverklee.de>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

EXT: Date/time renderlet for FORMidable 1

Introduction 1

No longer maintained 1

What does it do? 1

Credits 1

Installation 1

Users manual 2

Known Problems 2

Introduction

No longer maintained

This extension has been superseded by the functionality available in FORMidable 0.7.0. So it now is obsolete and no longer maintained.

What does it do?

This extension provides an extended version of the DATE renderlet of FORMidable 0.5.0. This DATETIME renderlet has the following additions:

  • enter and save times in addition to dates
  • use a user function for the time format

Credits

Most of the code is copied from FORMidable. The time parser has been provided by the author of FORMidable, Jerome Schneider. The feature of using a user function for the date format has been added by Oliver Klee.

Installation

Install the following extension in this order:

amoes_formidable 0.5.0

rlmp_dateselectlib

this extension

After installing this extension, you can fine-tune the DHTML date picker using the TS setup in plugin.tx_rlmpdateselectlib.calConf (please see the manual of rlmp_dateselectlib for details).

Users manual

This is an example of the usage of the DATETIME renderlet:

<renderlet:DATETIME name="begin_date">
        <label>LLL:EXT:seminars/locallang_db.php:tx_seminars_seminars.begin_date</label>
        <data>
                <datetime>
                        <converttotimestamp>true</converttotimestamp>
                        <format>%d.%m.%Y %H:%M</format>
                        <displaytime>true</displaytime>
                </datetime>
        </data>
</renderlet:DATETIME>

If you would like to retrieve the date/time format via a user function so that it's flexible, this would look like this:

<renderlet:DATETIME name="begin_date">
        <label>LLL:EXT:seminars/locallang_db.php:tx_seminars_seminars.begin_date</label>
        <data>
                <datetime>
                        <converttotimestamp>true</converttotimestamp>
                        <format>
                                <userobj>
                                        <extension>this</extension>
                                        <method>getDateFormat</method>
                                </userobj>
                        </format>
                        <displaytime>true</displaytime>
                </datetime>
        </data>
</renderlet:DATETIME>

Known Problems

This extension doesn't work with FORMidable 0.6.0, only with FORMidable 0.5.0.

img-1 EXT: Date/time renderlet for FORMidable - 2