# Looking for advice on how to create a different homepage

**URL:** <https://meta.discourse.org/t/looking-for-advice-on-how-to-create-a-different-homepage/43967>\
**Category:** UX\
**Created:** [Maio 10, 2016, 2:16am UTC](https://meta.discourse.org/t/looking-for-advice-on-how-to-create-a-different-homepage/43967 "2016-05-10T02:16:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [Maio 11, 2016, 12:15pm UTC](https://meta.discourse.org/t/looking-for-advice-on-how-to-create-a-different-homepage/43967/2 "2016-05-11T12:15:00Z")

</div>

> [@pmusaraj](#):
>
> How do I set up a “page” in a Discourse plugin? Or is this even doable? (By the way, I would prefer to have this homepage as another item in the menu, next to Latest, etc.)

Definitely possible. Start by looking at how the Tagging Plugin creates the [tags index route](https://github.com/discourse/discourse-tagging/blob/master/assets/javascripts/discourse/routes/tags-index.js.es6). If you encounter any seemingly insurmountable issues, ping us here and I’m sure we can overcome them.

> [@pmusaraj](#):
>
> The query to display the topics from a particular tag on this page, should it be written in Rails or in Ember? I’m a frontend developer, so CSS/Ember are things I can work my way around, Rails less so.

Javascript. You can get the topic list from the store [like Quick Messages does](https://github.com/angusmcleod/discourse-quick-messages/blob/master/assets/javascripts/discourse/helpers/user-messages.js.es6), or you can pull it from the server directly yourself, along the lines of:

```plaintext
    var url = '/c/' + category.slug;
    Discourse.ajax(url + ".json", {cache: true}).then((result) => {
      topics = result.topic_list.topics.filter((topic)=>{return topic.tags && topic.tags.indexOf('blah') > -1}),
      return topics
    })

```

You can treat the server like a JSON api. There’s a bunch of JSON endpoints. Start sticking `.json` after any route and you’ll soon discover them.

> [@pmusaraj](#):
>
> (although it modifies the reusable Discourse list item display, which isn’t my goal here).

Could you elaborate on what you mean by “modifies the reusable Discourse list item display”?

---

_[View the full topic](https://meta.discourse.org/t/looking-for-advice-on-how-to-create-a-different-homepage/43967)._
