Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Date type for custom_field
Hello, I need to have one of the available custom_fields from text to date (better would be with date picker, best with time as well).
I remember I used to leverage glz_custom_fields, but I guess it’s abandoned by now.
Thank you very much
Offline
Re: Date type for custom_field
Hi, glz_custom_fields should still work on current Textpattern and PHP versions, and you can find it in an updated version on GitHub. It includes scripts for a date picker and time picker, which you can link to via the custom field preferences. If you’re on a very recent PHP version, look at the commits for subsequent fixes that are not yet in the last release.
TXP Builders – finely-crafted code, design and txp
Offline
Re: Date type for custom_field
Thanks jakob,
I installed it and the plugin returns a problem on the paths. It does not find the jquery.datePicker url, although I have put it in the right location: in the root of the site
url:
https://mySiteUrl/plugins/glz_custom_fields/jquery.datePicker
path:
/Users/blabla/mySite/plugins/glz_custom_fields/jquery.datePicker
Could it be a permissions problem?
Offline
Re: Date type for custom_field
I can’t remember off hand, but in a working installation I have:
/plugins/glz_custom_fields/jquery.datePicker/
and
/plugins/glz_custom_fields/jquery.timePicker/
as the URLS. Only for the custom scripts do I have the absolute path from the root of the shared hosting account.
Otherwise, you can use the web inspector in your browser to determine if the scripts are loading and if not, if there are any problems with the paths.
TXP Builders – finely-crafted code, design and txp
Offline
Pages: 1