# 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:** 3

<div class="post-metadata">

**Author:** ![Gnisha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gnisha/32/97175_2.png) [@Gnisha](https://meta.discourse.org/u/Gnisha)\
**Post date:** [28 ביולי,‏ 2019,‏ 6:23am UTC](https://meta.discourse.org/t/displaying-discourse-variables-on-other-pages/124116/3 "2019-07-28T06:23:59Z")

</div>

Basically, I’m writing a plugin to display board statistics on the bottom of the forum, similar to what vBulletin does.

So far, I have this:  
 ![SiteStats](https://global.discourse-cdn.com/meta/original/3X/9/2/9296178d0875e5262ec936a028cc872b6d998db5.png)

In my plugin directory, my `/assets/javascripts/discourse/components/site-stats.hbs` is the following:

```plaintext
<div class="board-statistics-headrow">{{d-icon "far-chart-bar"}} {{i18n 'about.stats'}}</div>
<div class="board-statistics-row">
  Threads: {{number model.stats.topic_count}} Posts: {{number model.stats.post_count}} Members: {{number model.stats.user_count}}>
</div>
</div>

```

I grabbed the `{{number model.stats.topic_count}}` from the `about.hbs` file inside the Discourse GitHub repository.

---

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