We had a code for HomePage pagetype like so: Learn More
Tags: CMS, content, homepage, how, how to, page, part, remove, removing, silverstripe, type
Posted under SilverStripe CMS
If you want to show a list of users with, or without, their personal information, one of the easiest ways to do it is to use Shaun McCormick’s Peoples extra. Peoples will show information about users selected by Use Group and will let you sort the users by any field. One of the things Peoples will *not* do, though, is let you select users based on an extended field.
A MODX user recently requested this on the MODX Forums, so I’m devoting this blog post to creating a snippet to do it and demonstrating a little about how MODX snippets work along the way. The following snippet will select users based on an extended field and will show any information about them contained in their User Profile (including any extended fields). Note that the snippet selects users *only* by extended field. To select users in a different way, you’d have to use a different snippet. Learn More