Jeff VIP
Total posts: 745
13 Фев 2014 21:30

Hi,

After duplicating the simple_select.php template of the date-time field, I'm not able to save any date with the copied template. No errors are shown and the date remains empty.

Best regards,

Jeff

Последние изменения: 02 Март 2014


Sergey
Total posts: 13,748
14 Фев 2014 06:22

Do you have error reporting on and debug mode on?


Jeff VIP
Total posts: 745
14 Фев 2014 16:25

Now I have:

Notice: Undefined variable: type in /home/mysite/public_html/dev/components/com_cobalt/fields/datetime/datetime.php on line 53

Sergey
Total posts: 13,748
17 Фев 2014 00:17

I see. This is bad. it tells that you cannot create custom input templates without hack in field PHP file. Unfortunately it is binded to templates very tightly.


Jeff VIP
Total posts: 745
17 Фев 2014 00:51

Sergey

I see. This is bad. it tells that you cannot create custom input templates without hack in field PHP file. Unfortunately it is binded to templates very tightly.

:( All I want is to alter the simple select date field, so I can choose a year beyond 1934. The current limit is 80 years.

Maybe you could add a date range input field /selector to the default simple select date field settings?

IMHO it would make the simple select field more adaptable to certain scenarios.

Hope you can help...


Sergey
Total posts: 13,748
18 Фев 2014 06:12

I made some changes. In next version you will be able to add it. The rule will be name should start with simple_select*.php

Работает на Cobalt