I would like to create a dynamic content in Moodle. Here's a stupid example: a page that displays the all the registered users who live in the same town of the current logged user.
The way I found is not so simple. I added a resource (Moodle assign a unique id to it, for example 3) and I modified the code which display the resources: when users want to display resource #3, I update its html in the database and then I let Moodle to display it.
Is there a simpler way to manage dynamic pages in Moodle?