# Dynamic page to display data from my users

**URL:** <https://forum.getkirby.com/t/dynamic-page-to-display-data-from-my-users/26729>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 14, 2022, 1:45pm UTC](https://forum.getkirby.com/t/dynamic-page-to-display-data-from-my-users/26729 "2022-10-14T13:45:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickaeldurand](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mickaeldurand/32/8022_2.png) [@mickaeldurand](https://forum.getkirby.com/u/mickaeldurand)\
**Post date:** [October 14, 2022, 1:45pm UTC](https://forum.getkirby.com/t/dynamic-page-to-display-data-from-my-users/26729/1 "2022-10-14T13:45:02Z")

</div>

Hello,

I created members whose certain information is displayed in the front-end (for example the author of an article, his biography …etc).

I would like to create member files automatically (I create a template and the structure is identical).

Is it possible in getkirby to put in the /content folder something like this:

```auto
content
  members
   members.txt
     member
      member.txt

```

Thanks in advance,  
Michael

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 14, 2022, 2:54pm UTC](https://forum.getkirby.com/t/dynamic-page-to-display-data-from-my-users/26729/2 "2022-10-14T14:54:29Z")

</div>

> [@mickaeldurand](#):
>
> I created members whose certain information is displayed in the front-end

How have you created them and where? Are they created as users?

> [@mickaeldurand](#):
>
> I would like to create member files automatically

From what?

---

<div class="post-metadata">

**Author:** ![mickaeldurand](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mickaeldurand/32/8022_2.png) [@mickaeldurand](https://forum.getkirby.com/u/mickaeldurand)\
**Post date:** [October 14, 2022, 8:57pm UTC](https://forum.getkirby.com/t/dynamic-page-to-display-data-from-my-users/26729/3 "2022-10-14T20:57:11Z")

</div>

Hello,

Thank you for your reply.

I created users (they are stored in: `site/accounts`).

I have already created a trombinoscope page with all the photos of the members.

currently I click on each photo to display a “modal” (to display information: first name, last name, telephone, address…).

I realize that there is a lot of information.

I would like to display all the data in a **page profil** for all members.

example pages:  
**Indexes:**  
website .com/members

**member:**  
website .com/members/mickael  
website .com/members/texnixe  
… and more

In `site/templates` I create ‘members.php’ and ‘member.php’.

In `content/members` I have to create a folder for each member?

It’s useless because member data is stored in `site/accounts`?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 14, 2022, 10:09pm UTC](https://forum.getkirby.com/t/dynamic-page-to-display-data-from-my-users/26729/4 "2022-10-14T22:09:23Z")

</div>

What you could do is to create virtual pages from your users:

> **[Virtual pages](https://getkirby.com/docs/guide/virtual-pages)**
>
> In Kirby, you can integrate data from any data source and use them as if they were real Kirby pages, including creating and editing their content in the Panel.

Create a `members` model with a `children` method as in the examples, but instead of reading a database or file, use the users instead.

---

<div class="post-metadata">

**Author:** ![mickaeldurand](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mickaeldurand/32/8022_2.png) [@mickaeldurand](https://forum.getkirby.com/u/mickaeldurand)\
**Post date:** [October 17, 2022, 3:38pm UTC](https://forum.getkirby.com/t/dynamic-page-to-display-data-from-my-users/26729/5 "2022-10-17T15:38:54Z")

</div>

Thanks @texnixe .

I looked at the virtual.

I also searched the forum with the term “virtual page” and found this which seems to be what I wish to do:

> [@Building user profile pages in Kirby 3](https://forum.getkirby.com/t/building-user-profile-pages-in-kirby-3/12457/14):
>
> I tried that: config.php 'routes' =\> [['pattern' =\> 'mitglied/(:any)', 'action' =\> function($user) { $site = kirby()-\>site(); return tpl::load(kirby()-\>roots()-\>templates() . DS . 'member.php', array('user' =\> $user, 'site' =\> $site), false); }] ], template collection of users \<?php foreach($kirby-\>users()-\>sortBy('name','asc') as $user): if($user-\>member\_type() == "member"): ?\> \<a…

You had already developed it.
