Returning just a course ID

Re: Odp: Re: Odp: Re: Returning just a course ID

by Mark Johnson -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Not Really. The code Megan's talking about is for a custom block, the HTML block won't allow you to include PHP. It might be possible to do something with Javascript (looking at the course page's URL, pulling out the ID, and appending it to the src attribute of the embed) but it would be tricky as the HTML Editor will try to strip out the Javascript.