# Suggesting a previous/next topic button

**URL:** https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233
**Category:** Feature
**Created:** [2016 年 8 月 5 日午前 12:07 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233 "2016-08-05T00:07:22Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Biff75](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/biff75/32/121612_2.png) [@Biff75](https://meta.discourse.org/u/Biff75)
#### Post date: [2016 年 8 月 5 日午前 12:07 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/1 "2016-08-05T00:07:22Z")

</div>

I got here through a link from a Codecademy mod. Just wondering if anything was in the works as far as a previous/next topic button or toggle switch for the forums. It would be nice to get to the end of a series of posts on a given topic and have the option of going to a newer/previous topic without hitting a back button, checking browser history or clicking on the category name again.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2016 年 8 月 5 日午前 12:10 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/2 "2016-08-05T00:10:00Z")

</div>

Doesn’t this already exist - use j to move the post hightlight down, then click enter when you’ve selected the topic in suggested topics that you want.

---

<div class="post-metadata">

### Author: ![Biff75](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/biff75/32/121612_2.png) [@Biff75](https://meta.discourse.org/u/Biff75)
#### Post date: [2016 年 8 月 5 日午前 12:21 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/3 "2016-08-05T00:21:26Z")

</div>

I’m not sure that I’d agree that suggested topics are the same as chronologically ordered ones.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2016 年 8 月 5 日午前 12:23 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/4 "2016-08-05T00:23:12Z")

</div>

Ah, that is very true. This suggestion has come up before - let me see if I can find the previous discussions…

A quick search came up with this:

> [@Keyboard shortcut and link to go straight to next new topic?](https://meta.discourse.org/t/keyboard-shortcut-and-link-to-go-straight-to-next-new-topic/23717):
>
> On my forum, we have categories in which everyone is required to read every topic. I’ve been exploring the NEW and “Consider topics new when you haven’t viewed them yet” setting which seems to meet this requirement. However, the process of reading through the list of new topics is cumbersome, especially when there are alot of them to go through. You have to go to NEW, click on a topic and read through it, go back to NEW and click on the next topic, and so on. To speed this up, I suggest adding …

and this

> [@Previous/next topic](https://meta.discourse.org/t/previous-next-topic/24884):
>
> I have a bit of an odd request: one of my team members would like to see a previous/next topic (sic!) buttons somewhere (and possibly, keyboard shortcuts, too). This partially comes from my attempts to create gallery-like topics (where it really makes sense, if you want to browse through the pictures), and from the fact that other forum software also has it (that’s the weaker argument, I know…). I know that chances are small to include this in the main code, but if anyone could give me a little…

---

<div class="post-metadata">

### Author: ![Biff75](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/biff75/32/121612_2.png) [@Biff75](https://meta.discourse.org/u/Biff75)
#### Post date: [2016 年 8 月 5 日午前 12:28 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/5 "2016-08-05T00:28:43Z")

</div>

What’s the smartphone equivalent of hitting the j key? 😏

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016 年 8 月 5 日午前 12:32 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/6 "2016-08-05T00:32:02Z")

</div>

How do you define “next”? The idea behind Suggested Topics is that you get a choice of what you want to see next, not the computer’s idea forced upon you of what should be next.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2016 年 8 月 5 日午前 12:41 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/7 "2016-08-05T00:41:41Z")

</div>

If I am reading this correctly, “next” is based off of the chronological order of “Latest”.

---

<div class="post-metadata">

### Author: ![Biff75](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/biff75/32/121612_2.png) [@Biff75](https://meta.discourse.org/u/Biff75)
#### Post date: [2016 年 8 月 5 日午前 12:48 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/8 "2016-08-05T00:48:01Z")

</div>

Well, the suggested topics seem to work like a grab bag of things I might like. This can be interesting and fruitful at times. I’m thinking more along the lines of the user reading all replies to one topic in a given category, seeing an option to toggle to the next/previous topic in said category and being able to click on it.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2016 年 8 月 5 日午前 12:50 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/9 "2016-08-05T00:50:51Z")

</div>

Suggested topics should prioritize the current category. You should see unread (topics you’ve set to track or watch) first, then new topics, then topics that have no tracking or watching status.

---

<div class="post-metadata">

### Author: ![Biff75](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/biff75/32/121612_2.png) [@Biff75](https://meta.discourse.org/u/Biff75)
#### Post date: [2016 年 8 月 5 日午前 12:53 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/10 "2016-08-05T00:53:47Z")

</div>

I’ll mess around with my settings when I get home, thanks 🙂

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2016 年 8 月 5 日午前 10:16 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/11 "2016-08-05T10:16:27Z")

</div>

> [@jomaxro](#):
>
> If I am reading this correctly, “next” is based off of the chronological order of “Latest”.

And on the other discussion topic, it was said multiple times that the order of latest has no guarantee. New replies, edits to the last post, unlisting of topics, and so forth all impact Latest.

What I think would maybe work better than running off Latest, is running off Unread and grabbing the top unread topic via keyboard shortcut to navigate to next (once all are completed, maybe grab from New). You have less to keep track of because the topic you are viewing and the topics around you aren’t potentially shifting as quickly as Latest would and really wouldn’t matter (as you know those topics to be unread/new – unlike Latest).

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [2018 年 9 月 23 日午後 9:01 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/12 "2018-09-23T21:01:31Z")

</div>

I would like to revive this request as I’ve had a multitude of users request this functionality. Suggested posts simply don’t cut it for what we need.

I have a photo sharing site, in a category I have the sorting set by post date, not by latest. Here is an example: [https://community.naturephotographers.network/c/landscape/landscape-gallery](https://community.naturephotographers.network/c/landscape/landscape-gallery)

The users want the ability to go to the next image without having to go back to the category and it would be expected that the next image be next posted image, so chronological.

If this will never be put in core, could someone tell me if this is even possible so I could make a marketplace request? Thanks

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2018 年 9 月 23 日午後 9:16 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/13 "2018-09-23T21:16:36Z")

</div>

I’m a bit confused. It feels like you may have two questions.

> [@davidkingham](#):
>
> sorting set by post date, not by latest.

Latest is sorted by post date. Perhaps you mean “instead of Suggested, have it be a truncated Latest”?

What topics display in the Suggested are based on several things - the general result being what a member is most likely to be interested in reading next.

> [@davidkingham](#):
>
> go to the next image without having to go back to the category

It sounds like you may want something like a “put all the images that are in all of the posts in this topic into an image slider”. Or maybe you mean “go to another topic in this category that has an image in a post”.

The first would require a plugin, the second should be what happens as long as a member sets the category to Watch.

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [2018 年 9 月 23 日午後 9:46 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/14 "2018-09-23T21:46:02Z")

</div>

I should clarify that by ‘post date’ I mean post date of the original topic. So right now I have this category set to sort by ‘Created’ so that old topics will not be bumped up by new replies.

So what I want is a next button that would take me to the next ‘Created’ topic that is chronological

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/8/e869fe479fe1e68494883e5bb37286ed52f4d86f.jpeg)

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/c/0c7b9fcb7d7a051a435462b5f6fe72858efc7c46.jpeg)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2020 年 7 月 31 日午前 7:55 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/15 "2020-07-31T07:55:00Z")

</div>

この機能のキーボードショートカットは、以下のコミットで追加されました：

> <https://github.com/discourse/discourse/commit/dc14d156b65cba34716ea30c968067a6dac2fd39>
>
> After visiting a topic list (by tag / category / top level) we track the list
> 
> O…nce a list is tracked the combo \`g\` \`j\` can be used to go to the next topic
> in the list and \`g\` \`k\` to go to previous topic.
> 
> This allows you to quickly work through subsets of topics without having
> to navigate back to the top level lists
> 
> The shortcut does not work in PM lists yet, or search results, both are
> under consideration.

> [@Previous/next topic](https://meta.discourse.org/t/previous-next-topic/24884/37):
>
> This is complete for top level nav, tags and categories per: Will see if I can add it to PMs, search and bookmarks, but the basics are all here.

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [2020 年 8 月 1 日午後 2:58 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/22 "2020-08-01T14:58:31Z")

</div>

素晴らしい、サムさん、ありがとうございます！もしこれをマーケットプレイスに公開するなら、理論的にはボタンとして実装することも可能でしょうか？

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2020 年 8 月 1 日午後 10:29 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/23 "2020-08-01T22:29:07Z")

</div>

はい、テーマコンポーネントを使えば、これをボタンにできます。

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023 年 12 月 3 日午前 8:27 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/27 "2023-12-03T08:27:27Z")

</div>

4件の投稿が新しいトピックに分割されました：[「前の/次のトピック」キーボードショートカットをテーマコンポーネントにする](https://meta.discourse.org/t/making-previous-next-topic-keyboard-shortcuts-into-a-theme-component/287314)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2023 年 12 月 3 日午前 8:31 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/28 "2023-12-03T08:31:49Z")

</div>

OPにお答えして、ショートカットキーと同じAPIを使用した次のトピックボタンの実装を以下に示します。

> **[GitHub - paviliondev/discourse-tc-topic-next-button: Adds a Next Topic button on the Topic Timeline and...](https://github.com/paviliondev/discourse-tc-topic-next-button)**
>
> Adds a Next Topic button on the Topic Timeline and floating Topic progress bar on mobile.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2023 年 12 月 3 日午前 10:46 UTC](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233/30 "2023-12-03T10:46:23Z")

</div>

少し話題がそれますが、そのボタンはタイムラインの上か下の方が良いでしょうか？ 現在、横に並んでいるため、コンテンツが不必要に狭くなっています。

モバイルでは問題なく表示されています。

[次のページ](https://meta.discourse.org/t/suggesting-a-previous-next-topic-button/48233.md?page=2)
