We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

how to add a jqueryui datepicker to an input field in the cp

Development and Programming

H Media Webmaster's avatar
H Media Webmaster
119 posts
13 years ago
H Media Webmaster's avatar H Media Webmaster

I’m creating a new report type for the nsm reports add on

I want to be able to filter channel entries by a date range

I have the input fields set, but is there a way to add a datepicker to them

I was thinking there must be something built into the cp already

       
JCloutier's avatar
JCloutier
10 posts
13 years ago
JCloutier's avatar JCloutier

I am in the process of trying to learn all of this as well but Content_publish::entry_form() in system/expressionengine/controllers/cp/content_publish.php should give you a good idea how to load jquery ui libraries and custom javascript files from your themes directory.

Hope that helps.

       
H Media Webmaster's avatar
H Media Webmaster
119 posts
13 years ago
H Media Webmaster's avatar H Media Webmaster

thanks, I’m going to research this further and will try to post back with my solution later

       
H Media Webmaster's avatar
H Media Webmaster
119 posts
13 years ago
H Media Webmaster's avatar H Media Webmaster

for posterity, this is the code I used to add the datepicker JS

thanks to the guys at EE Garage guys for supplying it



						
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.