Maya Date

AlexisWilke - February 22, 2009 - 07:48
Maya calendar sample

Description

A very simple module to help in writing down a date in Maya notation without having to know how to convert a Julian date to a Maya date.

For detailed information:

The module is capable of rendering the Maya date in Arabic or in Maya numerals (see sample on the right side.) The Maya numerals can be written left to right or top to bottom. The characters themselves can be written horizontally (like Wikipedia) or vertically (like in the world calendars.)

Installation

Install the module in your Drupal /sites/all/modules folder.

Turn the module on (In package: Filter inputs).

Go to your Input formats and select the one that will support the Maya date filter (you can of course define it in all of them, this module is quite safe!)

In the list select the Maya date filter and hit Save.

Since the Save brings you back to the list of filters, click on that same filter again. Now the Maya date filter is selected, click on Configure. You now see a list of configuration options (unless you do not have permissions to see them, ask the Admin user to fix that...)

Available Options

  • Output type (text or image) and orientation
  • Text date separator
  • Image alignment
  • Width of a dot in the characters (i.e. diameter, default to 5 which is the minimum size)
  • Background color (defaults to white)
  • Text color (defaults to black)

Security

For the date to appear in Maya numerals, I use the path

      /mayadate/<format number>/<date>

You can test here: http://animals.m2osw.com/mayadate/6/now

By default, that path is protected. You need to change your permissions so your users can see the result.

Similarly, the setup of the Maya date Input format is protected by a permission flag.

Releases

Official releasesDateSizeLinksStatus
6.x-1.12009-May-1720.25 KBRecommended for 6.xThis is currently the recommended release for 6.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-May-1720.33 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.