Quote Originally Posted by joicol View Post
Ok, thanks a lot. One thing that is not clear to me is: how to integrate this calendar into an existing xara design. I guess I should copy all the (13) pages to my existing design. But what (main) page one should then link to in order to publish the calendar as a whole ?
Apologies for the delay in replying. I was working with a client.

If you want to incorporate the calendar into an existing design then I would change the index page to calendar.

This particular page has Page Head code of:
Code:
<script>var d = new Date();
var months = ["jan.htm","feb.htm","mar.htm","apr.htm","may.htm","jun.htm","jul.htm","aug.htm","sep.htm","oct.htm","nov.htm","dec.htm"];
window.location.href=months[d.getMonth()];
</script>
This forces the calendar page to jump to the current month.

I think what you probably want to do is place the calendar page in an IFRAME so that the current month is then always initially shown.

If you just want a complete calendar that is day-month correct for the changed year then just use the jan-dec pages separately, discarding the calendar page altogether.

I added the code above directly into a text link to jump to the current month, as another method.

Calendar-2019.xar

Acorn