Home » Documentation » $Content->files()


Returns a stack of files that have been uploaded and associated with $Content.

Files of any type can be attached to pieces of content. Images are automatically resized to several sizes, as defined in the PeoplePods admin tool.

You can pull this file out of the stack by using the -contains() function:

if ($img = $Content->files()->contains('file_name','img')) {
} else {
  echo "No image";
  • Discuss This Document

No comments have been posted yet.

Download Download the latest version of PeoplePods!

0.7 Latest Version:
Release Notes

A free membership is required to download PeoplePods.

  Already Registered? Login

Recent Posts from Our Blog

Developer Preview Launch!

I am very excited to announce the launch of PeoplePods version 0.666, THE DEVELOPER PREVIEW! After tons of hacking, I have tweaked the last line of code, and I am finally ready for a wider audience...