# Displaying Discourse Variables on Other Pages

**URL:** <https://meta.discourse.org/t/displaying-discourse-variables-on-other-pages/124116>\
**Category:** Development\
**Created:** [27 ביולי,‏ 2019,‏ 9:11am UTC](https://meta.discourse.org/t/displaying-discourse-variables-on-other-pages/124116 "2019-07-27T09:11:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [28 ביולי,‏ 2019,‏ 9:04am UTC](https://meta.discourse.org/t/displaying-discourse-variables-on-other-pages/124116/4 "2019-07-28T09:04:25Z")

</div>

You have two ways to do this.

Just check which (Rails) controller is being called on the `/about` page to fetch the data you need.

In your ember route file’s model method, you can call that controller via ajax and fetch the required data.

Otherwise,

If you’ve written your own controller, then create a new method and copy the logic from the controller you found to your new controller and (maybe) filter the data you need if that’s required.

> [@Gnisha](#):
>
> I grabbed the `{{number model.stats.topic_count}}` from the `about.hbs` file inside the Discourse GitHub repository.

this model variable is what is returned by the `model` method of the route in question.

I think you should go through [this](https://dev.to/kleinfreund/how-to-create-a-discourse-plugin-4290) guide to get a holistic understanding of how things work in discourse.

---

_[View the full topic](https://meta.discourse.org/t/displaying-discourse-variables-on-other-pages/124116)._
