Date Picker

Date Picker, a forum discussion on Jojo CMS. Join us for more discussions on Date Picker on our General Discussion forum.

Back to Forum Index : Back to General Discussion   RSS
James K. McFall James K. McFall

4 Apr 2008
Posts: 9

Hi there,
Anyone had any experience with the inbuilt Jojo date picker and how to set it up on a form?

Harvey had a quick word with me yesterday about it but I didn't get much detail out of it.

Cheers
Harvey

Core Developer

Harvey

4 Apr 2008
Posts: 327

It's not integrated into Jojo as such - we just use it on the admin pages for certain date input elements.

Pretty much everything you need to know is in the readme
http://jonathanleighton.com/projects/date-input

  • include jquery in the head of your document (already there by default)
  • include dimensions js file (dimensions plugin is also in the jojo_core/externals/ folder)
  • include date_input js file (stick this code in customhead.tpl)
  • include the css file
  • add 'class="date_input"' to all your date fields.
  • add "$($.date_input.initialize);" inside some script tags in the head of the document (also customhead.tpl)

And that's basically it. The only complications introduced by Jojo is that you need to change the path to the js files (external/folder/file.js) and you need to add the js includes to customhead.tpl

Let me know which part you are getting stuck on if this doesn't help.
James K. McFall James K. McFall

4 Apr 2008
Posts: 9

Cheers Harvey,
That worked out well - nice looking little calendar
Back to Forum Index : Back to General Discussion   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.