Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-03 15:20:38

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

jquery ui datepicker in admin

now that the backend is more customizable, is there a way to add the jquery date picker to a custom field?

this is because one of my sites uses ISO date to sort events, and this datepicker could probably input the ISO really quickly. thanks.

Last edited by mrtunes (2009-12-03 15:20:55)

Offline

#2 2009-12-03 16:28:00

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: jquery ui datepicker in admin

I might be missing some css or something (not very familiar with jQuery UI) but you could modify the classic admin theme by changing html_head to something like this.

	function html_head()
	{
		return '<link href="'.$this->url.'textpattern.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script><script type="text/javascript">$(document).ready( function(){$("#custom-1").datepicker();})</script>'.n;
	}

or create a plugin that does it.

Last edited by MattD (2009-12-03 16:28:25)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2009-12-03 16:43:18

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: jquery ui datepicker in admin

Where can I download the msd_admin_datepicker? :P

Offline

#4 2009-12-03 20:12:38

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: jquery ui datepicker in admin

Ask and you shall receive


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#5 2009-12-03 23:58:44

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: jquery ui datepicker in admin

Speechless.

Offline

Board footer

Powered by FluxBB