On 18.Oct.2002 -- 03:41 PM, Piroumian Konstantin wrote:
> Christian,
> 
> > From: Christian Haul [mailto:haul@;dvs1.informatik.tu-darmstadt.de] 
> > On 18.Oct.2002 -- 12:21 PM, Martin Schimak wrote:
> > > Hello!
> > > 
> > > Does anybody know how to tell the Date Input Module to deliver a 
> > > certain
> > > date format?
> > 
> > see java.text.SimpleDateFormat
> > 
> > and pass it via the format attribute. So currently, you 
> > cannot provide a format if you use it from sitemap, only when 
> > using it together with the mod-db actions.
> > 
> >    <mode name="date" format="EEE, MMM d, ''yy" type="all"/>
> > 
> > for example.
> 
> What if we could do this in the sitemap:
> 
> <map:parameter name="date" value="{date:date?format=dd/MM/yy}" />?

It would be possible (easily) to extent the module in this
way. Another, easy and for consistency needed extension is to allow
configuration on declaration.

I'm right in the middle of having the database stuff live in a
block. I'll add it to my todo list for after that. Unfortunately, this
list is growing rapidly :-(

        Chris.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to