Course images on course overview

Re: Course images on course overview

by Dominique YOLIN -
Number of replies: 1

Hi

I'm trying to define courses images in the "recently viewed" and "overview" blocks, but even though I've found how to display an image for the course itself, I don't find where to do the same for those 2 blocks

Any help would be greatly appreciated

Thank you

Dominique

In reply to Dominique YOLIN

Re: Course images on course overview

by Dominique YOLIN -
I just realised (looking with chrome insection tool) that the problem seems to come from the fact that on the div dashboard-card-img, the background image is generated in this format
"pluginfile.php/56/course/overviewfiles/Java-logo.png"
But when I save the image in the parameter and it is displayed in course description, the image is in this format
"/pluginfile.php?file=%2F56%2Fcourse%2Foverviewfiles%2FJava-logo.png"

So what is actually missing is the "?file=" in the url. When I inspect it and add it manually, the image is displayed
If anyone has any idea on what I'm doing wrong (could it be the template I use?)

sincerely