Formatting

These documentation pages are no longer maintained. Please visit the new documentation site.

The following table contains a list of template operators related to formatting and internationalization. Click on the name of an operator for more information about that specific operator (usage, parameters, description, examplets, etc.).

Operator Description
datetimeFormats dates/times according to settings in "datetime.ini".
i18nMarks a string for translation.
l10nFormats time, shorttime, date, shortdate, currency, number, etc.
siHandles unit display of values (output formatting).
x18nDEPRECATED - Use i18n instead.

Comments

Example for date formating

Note use of data_int to covert date value to integer before passing to l10n('date')
{$content_version.data_map.news_date.data_int|l10n('date')}

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
       datetime
       i18n
       l10n
       si
       x18n
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
10:20:53 am
by Balazs Halasy

Last updated

05/02/2004
3:55:55 pm
by Balazs Halasy

Authors

Balazs Halasy



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.