Metadates Plugin

This page is not translated yet. Showing original version of page. You can sign up and help with translating.

Metadates Plugin Description
The Metadates plugin is the best and the only solution for the Cotonti CMF that provides you with a flexible capability to display numeric & textual date and time representations within a Cotonti template file. In the Cotonti basic package you are limited with a digit-only date and time stamps, i.e.:

 

2010/03/01

 

or

14:05 03.01

This problem was partially solved by a far-from-being-perfect Cooldates plugin written specifically for the Seditio CMS.
Why Metadates?
The Metadates plugin is free from thew above shortcomings due to:
Optimization for the Cotonti CMF
Output via localization files
Use of the Cotonti standard date / time output tags
Where and how can I use Metadates?
Metadates works via the following Cotonti standard tags with its own postfixes attached:
{COMMENTS_ROW_DATE} in the comments.tpl
{FORUMS_POSTS_ROW_CREATION} in the forums.posts.tpl
{LIST_ROW_DATE}, {LIST_ROW_BEGIN} and {LIST_ROW_EXPIRE} in the list.tpl
{PAGE_ROW_DATE}, {PAGE_ROW_BEGIN} and {PAGE_ROW_EXPIRE} in the news.tpl
{PAGE_ROW_DATE}, {PAGE_ROW_BEGIN} and {PAGE_ROW_EXPIRE} in the page.tpl
In instance, a comment was created on March 2, 2010 @ 21:47. Via Metadates you're gonna have the following date / time components available in the template:

{COMMENTS_ROW_DATE_YYYY}: 2010 // 4-digit year
{COMMENTS_ROW_DATE_YY}: 10 // 2-digit year
{COMMENTS_ROW_DATE_DD}: 02 // 2-digit date
{COMMENTS_ROW_DATE_D}: 2 // 1-digit date
{COMMENTS_ROW_DATE_MMMM}: March // Full month
{COMMENTS_ROW_DATE_MMM}: Mar // Shortened month
{COMMENTS_ROW_DATE_MM}: 03 // 2-digit month index number
{COMMENTS_ROW_DATE_M}: 3 // 1-digit month index number
{COMMENTS_ROW_DATE_WWWW}: Tuesday // Full weekday
{COMMENTS_ROW_DATE_WWW}: Tue // Shortened weekday
{COMMENTS_ROW_DATE_W}: 2 // Weekday index number (Sun = 0)
{COMMENTS_ROW_DATE_Z}: 60 // Number of dated passed since Jan 1
{COMMENTS_ROW_DATE_GG}: 21 // 24-hour format of an hour without leading zeros
{COMMENTS_ROW_DATE_G}: 21 // 24-hour format of an hour without leading zeros
{COMMENTS_ROW_DATE_HH}: 21 // 24-hour format of an hour with leading zeros
{COMMENTS_ROW_DATE_H}: 21 // 12-hour format of an hour with leading zeros
{COMMENTS_ROW_DATE_I}: 47 // Minutes
{COMMENTS_ROW_DATE_S}: 00 // Seconds

 

Plugin page (in russian)


1. pieter  2010-03-02 15:22
Nice Kort
2. tensh  2010-03-05 17:16
Good one. :) What about news plugin?
3. Kort  2010-03-05 21:30
{PAGE_ROW_DATE}, {PAGE_ROW_BEGIN} and {PAGE_ROW_EXPIRE} in the news.tpl
4. Raylandar  2016-04-08 13:30

Broken link

5. Macik  2016-09-10 22:16
6. smit  2017-01-15 07:28

На бирже испльзовать возможно?

"Требуется человек такого-то числа"  и т.п.

7. Kort  2017-01-17 21:57

Это ж для Генуи был плагин. Сейчас используйте функцию cot_date()

Alleen geregistreerde gebruikers kunnen reacties plaatsen.