Images in lesson - branch table

Images in lesson - branch table

by Erin Bennett -
Number of replies: 4
I am using images as buttons on my branch table. Everything seems fine while editing and inserting the images, but as soon as I preview the lesson there are no images, just empty buttons.
I checked the html code and it all looks happy.

<img title="what is" height="76" alt="what is" hspace="0" src="http://oursite.com/develop/file.php/4/what_is.jpg" width="129" border="0" />

Any ideas on why the images aren't appearing? I am using the 'Use Editor' option.
Average of ratings: -
In reply to Erin Bennett

Re: Images in lesson - branch table

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Erin,
You can not have images inside buttons. What you want to achieve (or something similar) is of course possible in HTML, but it is not possible in the Moodle Lesson interface as is.sad
Joseph
Average of ratings: Useful (2)
In reply to Erin Bennett

Re: Images in lesson - branch table

by Chris Collman -
Picture of Documentation writers
Good one Joseph. Wonder if that is in the Lesson Docs? And is it a Tracker item?

Erin, you could try to insert a question page and use it as a branch table. But it will not have the button effect.

Best Chris
In reply to Chris Collman

Re: Images in lesson - branch table

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
I don't think this is a case for bug tracker, since it is not a bug. I can't think of any other place in Moodle where it might be possible to insert an image inside a button. Of course, the problem here comes from the fact that in the Lesson Branch Table option, a text (possibly using the HTML editor) is transformed into a Button label, which may lead to the confusion. Chris, I leave it up to you to decide whether to include a Warning note in the Lesson docs.
Joseph