Hi, I create a code in the “portfolio.php” file, to put images on my website (like in the Kirby YouTube Video). I have the jpg and the jpg.txt and a portfolio.txt file in the content folder “portfolio”. But the image is not displayed. ?
I try the new code, but it doesn’t work. I also wonder why the code from the tutorial doesn’t work. But I have to apologize, I am a beginner
This ist my complete php file. Maybe there ist something on the wrong position?
A general tip: debugging by dumping the variables. dump($page) to check if the page has the right template etc. or dump($page->images()) to see the images array.
I noticed the same issue a couple days ago. It only happens when you put files into the content folder manually, if you upload images through the panel, their filenames will be optimised by Kirby.