Hi Ruben,

thanks for your quick answer!
Do you know where i can find some documentation (or something like that)
to learn how to create a new radius tag?


Greetings,
Andreas Semt


Ruben D. Orduz schrieb:
> Hi Andreas,
> 
> I believe so. If you want to have a context-insensitive date, you could
> either modify the date tag or simply write a new one. In either case, it
> should be fairly straight forward.
> 
> Peace.
> 
> On 12/25/06, Andreas Semt <[EMAIL PROTECTED]> wrote:
>>
>> Hi Ruben,
>>
>> thanks for your explenations. However <r:date> is bound to the page
>> object, isn't it?
>> What if i just want to include the *actual* date and time somewhere on my
>> pages?
>>
>>
>> Greetings,
>> Andreas Semt
>>
>> > Hi Andreas,
>> >
>> > That's trivial. Refer to line 315 of page_context.rb file. Just for
>> > reference this is what it says:
>> > 215       # <r:date [format="format_string"] />
>> > 316       #
>> > 317       # Renders the date that a page was published (or in the event
>> > that it has
>> > 318       # not ben modified yet, the date that it was created). The
>> > format attribute
>> > 319       # uses the same formating codes used by the Ruby +strftime+
>> > function. By
>> > 320       # default it's set to '%A, %B %d, %Y'.
>> > 321       #
>> > 322       define_tag 'date' do |tag|
>> > 323         page = tag.locals.page
>> > 324         format = tag_time_format(tag)
>> > 325         if date = page.published_at || page.created_at
>> > 326           date.strftime(format)
>> > 327         end
>> > 328       end
>> >
>> >
>> >
>> > On 12/24/06, Andreas Semt <[EMAIL PROTECTED]> wrote:
>> > > Hello list,
>> > >
>> > > with the radius tag  <r:rfc1123_date /> i can include the date and
>> time
>> > > in my pages. However, which way can i modify the output of that 
>> radius
>> > tag?
>> > > Or: Is it possible to include pure Ruby code in the page and layout
>> > > definitions and then style that for an adapted date and time version?
>> > >
>> > >
>> > > Best regards,
>> > > Andreas Semt
>> > > _______________________________________________
>> > > Radiant mailing list
>> > > Post:   Radiant@lists.radiantcms.org
>> > > Search: http://radiantcms.org/mailing-list/search/
>> > > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>> > >
>> > _______________________________________________
>> > Radiant mailing list
>> > Post:   Radiant@lists.radiantcms.org
>> > Search: http://radiantcms.org/mailing-list/search/
>> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>> _______________________________________________
>> Radiant mailing list
>> Post:   Radiant@lists.radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to