Hello
I inserted a calendar popup in my chronoforms a few weeks ago, and I only realize now I face an issue with it. Sorry I can't remember where I found and copied the code from, I guess I found it in the Chronoforms forums.
The issue is :
- calendar starts with sunday while we want to start with monday
- saturday and sunday are not visible in the columns headers
- dates in the saturday and sunday columns are greyed and we don't want any color difference with other days.
Here is the code in my form :
and I attach a screenshot too.
How can I fix thoses 3 issues ?
Best regards
Arnaud
I inserted a calendar popup in my chronoforms a few weeks ago, and I only realize now I face an issue with it. Sorry I can't remember where I found and copied the code from, I guess I found it in the Chronoforms forums.
The issue is :
- calendar starts with sunday while we want to start with monday
- saturday and sunday are not visible in the columns headers
- dates in the saturday and sunday columns are greyed and we don't want any color difference with other days.
Here is the code in my form :
<?php JHTML::_('behavior.calendar'); ?>
<input type="text" name="date" size="11" id="date" title="Information obligatoire"/>
<img class="calendar" src="templates/system/images/calendar.png" alt="Calendrier" id="showCalendarDate" />
<script type="text/javascript">
Calendar.setup({
inputField : "date",
ifFormat : "%d/%m/%Y",
button : "showCalendarDate",
showsTime : false,
showOthers : true
});
</script>
and I attach a screenshot too.
How can I fix thoses 3 issues ?
Best regards
Arnaud
Hi Loko,
This is the standard Joomla calendar from Dynarch.com and it is pretty fully configurable. There are docs here.
I think you probably need the firstDay : 1, in the Calendar.setup to change the start day to Monday.
The other two changes are set in the calendar css - you can either edit the site media/sytem/css/calendar-jos.css or make a copy and load that in your form instead of the default version.
Bob
This is the standard Joomla calendar from Dynarch.com and it is pretty fully configurable. There are docs here.
I think you probably need the firstDay : 1, in the Calendar.setup to change the start day to Monday.
The other two changes are set in the calendar css - you can either edit the site media/sytem/css/calendar-jos.css or make a copy and load that in your form instead of the default version.
Bob
This topic is locked and no more replies can be posted.