New event and course id

New event and course id

by Jeroen Kleijn -
Number of replies: 1
I want to add a button (HTML block) to go directly to the add new calendar event screen for easy homework entry.

I want to define this as a sticky block. The problem is that the course id is part of the url.

Is it possible to use a variable for this?

regards
Jeroen Kleijn
Average of ratings: -
In reply to Jeroen Kleijn

Re: New event and course id

by Jeroen Kleijn -
I solved it myself by
  • edit the description of the HTML block -
  • press <> (edit html code)
  • replace the coursenr by "coursid"
the string looks like:

<a href="http://www.bonhoeffer.nl/elo/calendar/event.php?action=new&course=courseid" target="_blank"><font size="4" style="font-weight: bold;">Huiswerk opgeven</font></a>