sebastiaan Posted June 24, 2019 Share Posted June 24, 2019 <?php foreach($page->children as $child) echo " <li><a href='$child->url'> <img class='photo' src='{$child->project_logo->url}' alt='{$child->project_logo->description}' width='200' height='200' /> $child->title, omschrijving:<br> $child->project_summary </a> </li>"; ?> </ul> trying to display all child pages with logo, but when i try to display it it shows a 403 forbidden error,: Link to comment Share on other sites More sharing options...
wbmnfktr Posted June 24, 2019 Share Posted June 24, 2019 Is your project_logo field limited to 1 file only? If not... either change the limit in the settings to 1 or place your image code into a foreach() I'd recommend the first option. 2 Link to comment Share on other sites More sharing options...
sebastiaan Posted June 24, 2019 Author Share Posted June 24, 2019 yes that was it. thank you very much:) Link to comment Share on other sites More sharing options...
wbmnfktr Posted June 24, 2019 Share Posted June 24, 2019 You're welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now