Chris Green | 16 Jul 2012 18:09

Date picker for DokuWiki - is there one anywhere?

I want a compact date picker for DokuWiki that I can have in the sidebar
(I use the Roundbox template) or pop up from an icon on a wiki page.  Is
there anything available ready made anywhere?

I already use the wikicalendar plugin but the calendar that produces is
rather large and doesn't scale well down to a small date picker.

What I'd *really* like is something like the date pickers on the
P&O (and many other) web site:-
    http://www.poferries.com/

but just something like the date picker that pops up when you click the
icon on the above site would do as it would fit in my sidebar quite well.

-- 
Chris Green
--

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Myron Turner | 16 Jul 2012 19:16
Picon
Favicon
Gravatar

Re: Date picker for DokuWiki - is there one anywhere?

On 7/16/2012 11:09 AM, Chris Green wrote:
> I want a compact date picker for DokuWiki that I can have in the sidebar
> (I use the Roundbox template) or pop up from an icon on a wiki page.  Is
> there anything available ready made anywhere?
>
> I already use the wikicalendar plugin but the calendar that produces is
> rather large and doesn't scale well down to a small date picker.
>
> What I'd *really* like is something like the date pickers on the
> P&O (and many other) web site:-
>      http://www.poferries.com/
>
> but just something like the date picker that pops up when you click the
> icon on the above site would do as it would fit in my sidebar quite well.
>
Is this for non-profit, is it for commercial? Do you need it as a plugin 
or can you load it into your sidebar as html?

-- 
Myron Turner
http://mturner.org/
http://mturner.org/fckgLite
https://github.com/turnermm

--

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Chris Green | 16 Jul 2012 19:49

Re: Date picker for DokuWiki - is there one anywhere?

On Mon, Jul 16, 2012 at 12:16:31PM -0500, Myron Turner wrote:
> On 7/16/2012 11:09 AM, Chris Green wrote:
> >I want a compact date picker for DokuWiki that I can have in the sidebar
> >(I use the Roundbox template) or pop up from an icon on a wiki page.  Is
> >there anything available ready made anywhere?
> >
> >I already use the wikicalendar plugin but the calendar that produces is
> >rather large and doesn't scale well down to a small date picker.
> >
> >What I'd *really* like is something like the date pickers on the
> >P&O (and many other) web site:-
> >     http://www.poferries.com/
> >
> >but just something like the date picker that pops up when you click the
> >icon on the above site would do as it would fit in my sidebar quite well.
> >
> Is this for non-profit, is it for commercial? Do you need it as a
> plugin or can you load it into your sidebar as html?
> 
It's just for my own use on my personal wiki, self and family use only. 

I could use either HTML to put in the sidebar or a plugin though I guess
for use in a plugin might be better.

-- 
Chris Green
--

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

(Continue reading)

Myron Turner | 17 Jul 2012 04:41
Picon
Favicon
Gravatar

Re: Date picker for DokuWiki - is there one anywhere?

On 7/16/2012 12:49 PM, Chris Green wrote:
> It's just for my own use on my personal wiki, self and family use only.
>
> I could use either HTML to put in the sidebar or a plugin though I guess
> for use in a plugin might be better.

http://www.mturner.org/devel/doku.php?id=start&#calendar

-- 
Myron Turner
http://mturner.org/
http://mturner.org/fckgLite
https://github.com/turnermm

--

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Michael Hamann | 16 Jul 2012 19:25
Picon
Gravatar

Re: Date picker for DokuWiki - is there one anywhere?

Hi,

2012/7/16 Chris Green <cl <at> isbd.net>:
> I want a compact date picker for DokuWiki that I can have in the sidebar
> (I use the Roundbox template) or pop up from an icon on a wiki page.  Is
> there anything available ready made anywhere?

yes, DokuWiki includes jQuery UI, jQuery UI includes a datepicker
widget [0]. It should be relatively simple to create a syntax plugin
which prints a form input and includes some javascript which enables
the datepicker widget for this input.

Michael

[0]: http://jqueryui.com/demos/datepicker/
--

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Chris Green | 16 Jul 2012 22:42

Re: Date picker for DokuWiki - is there one anywhere?

On Mon, Jul 16, 2012 at 07:25:29PM +0200, Michael Hamann wrote:
> Hi,
> 
> 2012/7/16 Chris Green <cl <at> isbd.net>:
> > I want a compact date picker for DokuWiki that I can have in the sidebar
> > (I use the Roundbox template) or pop up from an icon on a wiki page.  Is
> > there anything available ready made anywhere?
> 
> yes, DokuWiki includes jQuery UI, jQuery UI includes a datepicker
> widget [0]. It should be relatively simple to create a syntax plugin
> which prints a form input and includes some javascript which enables
> the datepicker widget for this input.
> 
I'm very much not a JavaScript expert, nor do I know how it links into DokuWiki.

Looking at the example code at the link you pointed me to the example
comprises (in the HTML):-

        <script>
        $(function() {
                $( "#datepicker" ).datepicker();
        });
        </script>

    <div class="demo">
    <p>Date: <input type="text" id="datepicker"></p>
    </div><!-- End demo -->

If I write a plugin to use this can I just put the <script> into a file
called script.js in the plugin and create the appropriate <input....>
(Continue reading)


Gmane