Example usage for CPD embedded course data
Below are examples of displaying data from the CPD course widget. You should include a link to the stylesheet, place a DIV html element where you want the data to appear, and include a script tag containing the options for which data to show.
Basic Embedding Code
<link href="https://booking.etfoundation.co.uk/ui/assets/css/widget.css" rel="stylesheet">
<div id="putcoursedatahere1"></div>
<script src="https://booking.etfoundation.co.uk/widget?data=instance&div=putcoursedatahere1"></script>
Parameter Options
?data=instance|course|tlpd Display either course, instance or tlpd information. Mandatory
?programme=ABC,DEF Limit by Programme Code(s). Optional defaults to all programmes.
?div=id The ID of which HTML element to place the course data into. Defaults to etfcpd
?layout=table|list|calendar Which presentation style to display the data (calendar is only for the tlpd data type). Defaults to table.
?limit=10 Limit results to x. Defaults to no limit (doesn't apply to calendar)
?includesummary=1 Include course short summary. Defaults to 0
?programmes=1,2,3,4,5 (TLPD Calendar only) Comma separated list of programme ids to use. Defaults to 38,39,40,41,42
