Home » Documentation » $Person->files()


Returns a stack of files that $Person has uploaded that are not associated with a specific piece of content. These are considered associated with the person's profile.

The main use of this is to create an avatar for the person. In the default templates, this file is named 'img'.

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

if ($img = $Person->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.667 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...