# User page with custom data from external DB

**URL:** <https://meta.discourse.org/t/user-page-with-custom-data-from-external-db/56351>\
**Category:** Development\
**Created:** [Janvier 25, 2017, 8:33 UTC](https://meta.discourse.org/t/user-page-with-custom-data-from-external-db/56351 "2017-01-25T20:33:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)\
**Post date:** [Janvier 25, 2017, 10:00 UTC](https://meta.discourse.org/t/user-page-with-custom-data-from-external-db/56351/4 "2017-01-25T22:00:49Z")

</div>

> [@Rojoss](#):
>
> For the front end stuff, you linked the PR that adds an outlet on the user nav.But is this the only way to add content to the forum?Would it be possible for example to just add a button somewhere on a user page that links to a sub page for a user?

You’d want to use the outlet to add a link to a route which you define in your plugin using a route map, with the route map being done a lot like this:

[https://meta.discourse.org/t/multiple-routes-in-one-plugin/38120?u=leomca](https://meta.discourse.org/t/multiple-routes-in-one-plugin/38120)

That then allows you to define templates, controllers and routes with the same name as your resources. As some examples of defining things in a route map, [this would probably be the simplest I’ve written](https://github.com/mozilla/discourse-email-all/tree/master/assets/javascripts/discourse) and [this the most complex](https://github.com/LeoMcA/discourse-rss-poster/tree/master/assets/javascripts/discourse).

You’ll also want to [install the ember inspector](https://github.com/emberjs/ember-inspector#installation) to debug any routing problems you have.

---

_[View the full topic](https://meta.discourse.org/t/user-page-with-custom-data-from-external-db/56351)._
