Jump to content

Recommended Posts

Posted
<?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,:

image.png.02a576da0cbe757a348b48b1f45d55c0.png

Posted

Is your project_logo field limited to 1 file only?

If not...

  1. either change the limit in the settings to 1 or
  2. place your image code into a foreach()

I'd recommend the first option.

  • Like 2

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...