[Radiant] Date tag oddness

Gabriel Lamounier grezlam at gmail.com
Wed Mar 21 12:39:12 CDT 2007


 Walter,

The <r:date> tag shows the published_at date (or created_at if the
page hasn't been published yet).

There was a past conversation where some of us agreed that it would be
good if the <r:date> tag accepted another parameter besides "format"
to indicate which date to show (published_at, created_at or
updated_at).

I think it's a good idea that this new parameter accept another value
as "now" so it can show the actual date and time. For example, in a
site I'm working on I had to create a tag to do just that, but it wold
be a lot better to have this a standard feature.

Is anyone working on it?

Be Radiant!
Gabriel

> Message: 8
> Date: Wed, 21 Mar 2007 13:20:07 -0400
> From: Walter Lee Davis <waltd at wdstudio.com>
> Subject: [Radiant] Date tag oddness
> To: radiant at lists.radiantcms.org
> Message-ID: <566a02efff15f2db1656e659eb2df43a at wdstudio.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> I cannot for the life of me figure out what drives the decision of
> WHICH year this tag means:
>
> <r:date format="%Y" />
>
> I have tried updating the content in the footer snippet, the Home page,
> etc. New pages get the correct year, but old pages get whatever year
> they were created in, it seems.
>
> Is there a tag I can use that means This Year, as in what year the
> server thinks it is at the moment?
>
> Thanks,
>
> Walter
>
>
>
> ------------------------------
>
> _______________________________________________
> Radiant mailing list
> Post:   Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
> End of Radiant Digest, Vol 12, Issue 34
> ***************************************
>



More information about the Radiant mailing list