Hi Experts,
I looked into the generated code of the calendar page. The relevant part looked like ths:
...
<link href='/jw/plugin/org.joget.CalendarMenu/lib/fullcalendar.min.css' rel='stylesheet' />
<link href='/jw/plugin/org.joget.CalendarMenu/lib/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='/jw/plugin/org.joget.CalendarMenu/lib/moment.min.js'></script>
<script src='/jw/plugin/org.joget.CalendarMenu/lib/fullcalendar.min.js'></script>
<script src='/jw/plugin/org.joget.CalendarMenu/lib/lang-all.js'></script>
<script src='/jw/plugin/org.joget.CalendarMenu/lib/gcal.js'></script>
<script>
$(document).ready(function() {
$('#fullcalendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
buttonText: {
today: 'Today',
month: 'Month',
week: 'Week',
day: 'Day'
},
lang: "en",
eventLimit: true,
eventSources: [
{
url: '/jw/web/json/app/mba/1/plugin/org.joget.CalendarMenu/service?action=events&userviewId=v&menuId=GeneralCalendar&key=&_nonce=U%257D%25EF%25BF%25BD%25EF%25BF%25BD%25EF%25BF%25BD%257D%257B4cV',
}
],
eventRender: function(event, element, view) {
//console.log(event); console.log(element); console.log(view);
},
eventAfterRender: function(event, element, view) {
//console.log(event); console.log(element); console.log(view);
},
eventAfterAllRender: function(view) {
//console.log(view);
},
eventClick: function(event, jsEvent, view) {
console.log(event); console.log(jsEvent); console.log(view);
var popupActionDialog = new PopupDialog("/jw/web/userview/jmrb/v/_/calendarDisplay?id="+event.id+"&embed=true");
popupActionDialog.init();
}
});
});
</script>
<div class="calendar_menu_body">
<h3></h3>
<script>
$(document).ready(function() {
$('#fullcalender').fullCalendar({
buttonText: {
today: 'Vandaag',
month: 'Maand',
week: 'Week',
day: 'Dag'
},
lang: "nl"
});
});
</script>
<style>
h1 {text-align:center;}
</style>
<h1>Deadline Calendar</h1>
<div id="fullcalendar" class="fullcalendar"></div>
</div>
The bold text I added through the Custom Header.
1) It seems to me that the relevant js-scripts are correctly referenced.
2) I copying the script to change the buttonText and language. So I think that is correct.
3) I wonder of my added script is placed at the right place. In other words: does the Custom Header place the addition at the right place? It is now place in the div class="calendar_menu_body".
Thanks in advance,
Arend-Henk