I’d like to set some customization to a DateTime field like a minimum and maximum date and start the selection from year.
I tried – reading the options on this page – to set in the "DateTime Picker selector" field of general settings of the form some parameters for a custom class after patching as described here.
If works for some options like days, dayShort, months, monthShort, startDay, etc.
If I try something like this I get errors:
Do you know why? I’m on Joomla! 1.5
Thanks.
I tried – reading the options on this page – to set in the "DateTime Picker selector" field of general settings of the form some parameters for a custom class after patching as described here.
If works for some options like days, dayShort, months, monthShort, startDay, etc.
If I try something like this I get errors:
myclass::{minDate: [date: '10-03-2009', format: 'd-m-Y'], maxDate: [date: '25-06-2009', format: 'd-m-Y']}
(parse error)myclass::{startView: decades}
(can’t find variable decades)Do you know why? I’m on Joomla! 1.5
Thanks.
Hi mat,
A quick comment; I don't have time to test right now.
I think that you probably need quotes here myclass::{startView: 'decades'} and try the dates using the format 'Y-m-d' e.g. {date: '2009-03-10', format: 'Y-m-d'} I found with the delay code that not all formats worked.
Bob
A quick comment; I don't have time to test right now.
I think that you probably need quotes here myclass::{startView: 'decades'} and try the dates using the format 'Y-m-d' e.g. {date: '2009-03-10', format: 'Y-m-d'} I found with the delay code that not all formats worked.
Bob
Thank you Bob, the startView works as described; the minDate and maxDate wants curly braces {} instead of square brackets.
Now I write a post with some customization samples.
Edit: the post with the options: http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&p=69470#p69470
Now I write a post with some customization samples.
Edit: the post with the options: http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&p=69470#p69470
This topic is locked and no more replies can be posted.