Hello mad.
Thank you for trying to help me.
So my image is simply called like that in my template.
<img src="@{ imageProjectCover }" alt="Cover">
As I use the image
prefix for the variable, in my dashboard, I use the file explorer popup to select my image, located under the project specific page. After doing so, the value inserted in the field in the page dashboard is, as intended, a relative one (so "cover.jpg"). Until then, everything seems normal to me.
But when I inspect my <img> élément, in my developper tools, as I explained, the image src is resolved as /portfolio/project1/cover.jpg
instead of /01.portfolio/project1/cover.jpg
(as I use the Automad prefix variable to order my main nav).
I don't know if it's worth to mention that I set a default (shared) image for that imageProjectCover
variable (located here : /shared/default-image.jpg
). So when not setting any value at all in the project page template, the shared variable is correctly inserted and the default image is displayed. But when I set a local image (related to the corrent project page) the image path is wrong, without prefix the "01." prefix before the "portfolio" folder name, as it would be needed to be found and displayed.
I tried to get rid of the shared variable, to see if it could be the cause of all this, but it seems not...