Hello,
I'm really sorry to ask you this kind of very simple question, I'm discovering processwire and have not so much php knowledge. Until know I'm able to get the data from text fields without any problem and that's great But have some problem with multiple images. I've read a lot but didn't find the solution by myself so here am I.
How can I display multiple images from the same images field?
That's basically my question.
My code:
<?php
foreach($page->children as $project)
echo "<h2>{$project->title}</h2>
<p>{$project->body}</p>
<img src='{$project->images->url}'>";
?>
http://catalanotto.ch/processwire/print/
For know the images isn't displaying (seems the path isn't ok) and it's just displaying one image result.
If it helps, more informations:
I have pages like that:
category
> project
> project
> project
category
>project
>project
In the project page and template I use the images field provided by default with the processwire installation. There I have one or more images.
Thanks for reading and hope I'm not bothering you too much with this very simple question.