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
            


Example One

https://booking.etfoundation.co.uk/widget?data=course&layout=table&div=putcoursehere1&limit=5&includesummary=1


Example Two

https://booking.etfoundation.co.uk/widget?data=instance&layout=table&div=putcoursehere2&limit=5&includesummary=1


Example Three

https://booking.etfoundation.co.uk/widget?data=instance&layout=list&div=putcoursehere3&limit=5


Example Four

https://booking.etfoundation.co.uk/widget?data=tlpd&layout=table&div=putcoursehere4


Example Five

https://booking.etfoundation.co.uk/widget?data=tlpd&layout=calendar&div=putcoursehere5


Example Six

https://booking.etfoundation.co.uk/widget?data=tlpd&layout=calendar&div=putcoursehere6&programmes=1,2,3,4,5,6,7,8,9,10,37,45