Twig list of users/profiles

Hi there

Is it possible to generate a list of users in Twig? I just want a list of users, grouped by Title, and including their account pictures.

Thank you


@nick1, You’ll need to create a custom plugin for that:

  • Create plugin
  • Loop through folder returned by
    $this->grav['locator']->findResource('account://', true);
  • Parse each yaml file
  • Provide array of extracted info to Twig
1 Like