Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-07-02 09:13:48

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

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

#2 2023-07-02 10:01:19

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,611
Website

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

#3 2023-07-02 10:24:22

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 251
Website

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

#4 2023-07-02 10:30:13

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,611
Website

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

Board footer

Powered by FluxBB