[pmwiki-users] new recipe: datepicker

Knut Alboldt pmwiki at alboldt.de
Sun Feb 7 12:54:14 CST 2010

Hi Hans !

corrected the code and updated the cookbook.

cheers Knut

Am 07.02.2010 17:57, schrieb Hans:
> thanks Knut!
> Some feedback:
> I got it running after playing with the $HTMLHeaderFmt settings a bit.
> I prefer the javascript, css, and button image all in one directory,
> i.e. pub/datepicker/
> so I changed the $HTMLHeaderFmt accordingly.
> To load the css and script only when the datepicker markup directive
> is in the page I put the  $HTMLHeaderFmt['datepicker']
> into the datapicker function.
But I think this only works if the
> (:datepicker ....:) markup is in the main page content, not in a
> sidebar subpage.
seems to work also, if you put a datepicker in a sidebar (not via the 
> I noticed one error in the available date formats the script provides:
> 'd-m-Y' is not availale, but 'Y-m-d' is.
> I often use 'Y-m-d', so I was glad that this works out of the box.
> And one minor thing:
> if one downloads the datapicker gif icon, it is named
> datepickerselect.gif, and not selectdatebutton.gif as set in
> datepicker.php with $DatepickerImg
> Anyway, works great!
hope it still will ... ;)
> thanks,
>    ~Hans
cookbook is updated, thanks for your help !


More information about the pmwiki-users mailing list