# Discourse Chain Topics Plugin

**URL:** https://meta.discourse.org/t/discourse-chain-topics-plugin/233088
**Category:** Plugin
**Created:** [July 17, 2022, 9:26am UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088 "2022-07-17T09:26:26Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ghassan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghassan/32/263566_2.png) [@ghassan](https://meta.discourse.org/u/ghassan)
#### Post date: [July 17, 2022, 9:26am UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/1 "2022-07-17T09:26:26Z")

</div>

I have just released a discourse plugin for chaining topics

When I was going over [Developing Discourse Plugins - Part 1 - Create a basic plugin](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-1-creating-a-basic-plugin/30515) the guide is splitted into 7 parts.

I thought why not creating a plugin for this use case; where you have topics in a chain.

By using this plugin you could add “Next Topic” and “Previous Topic” links on the topic title.

See screenshot below for example how it would look:

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/d/8/cd8029a6ea58a521389c257a7d12ddbef5403382.jpeg)

**For more details and install** : [GitHub - zaatdev/discourse-chain-topics: This a discourse plugin which adds a feature where it would be possible to chain topics. A topic can have other topic to be it's next or previous topic. · GitHub](https://github.com/zaatdev/discourse-chain-topics)

Special thanks to @angus for [How to add custom fields to models](https://meta.discourse.org/t/how-to-add-custom-fields-to-models/184485) the guide/example enormously simplized the way I wrote the plugin.

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [October 28, 2022, 1:51am UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/2 "2022-10-28T01:51:42Z")

</div>

Absolutely LOVE this – a very important feature for Story forums as well as Documentation forums!

I’m getting a **500 error** when I click the Save Edit button. The field in the composer doesn’t seem to keep what I enter into it…

 ![Screenshot 2022-10-27 194403](https://global.discourse-cdn.com/meta/original/4X/3/f/f/3ffa70119a154cf721489f0e701d709ccb501bac.png)

 ![Screenshot 2022-10-27 194316](https://global.discourse-cdn.com/meta/original/4X/c/1/4/c14f8ada249343571ebd8e564344e3db5a301d53.png)

Paginate Pagination Prev Next Previous Next In Sequence Sequential Forward Back (adding some key words here to make this Topic easier to find for folks!)

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [October 28, 2022, 2:38pm UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/3 "2022-10-28T14:38:30Z")

</div>

Here’s a method I’m using …

> [@Is pagination impossible or just hard?](https://meta.discourse.org/t/is-pagination-impossible-or-just-hard/231838/16):
>
> To create navigation from Topic to Topic (and auto insert Back/Prev and Forward/Next buttons on each Topic in the sequence), I’m doing it this way… I’m repurposing the “Reply as Linked Topic” and then CSS styling the links like so … And adding some CSS in the Theme Settings … play_button MINIMAL CSS JUST FOR THE BUTTONSplay_button INSTRUCTIONS AND THE …

---

<div class="post-metadata">

### Author: ![ghassan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghassan/32/263566_2.png) [@ghassan](https://meta.discourse.org/u/ghassan)
#### Post date: [October 31, 2022, 10:59am UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/4 "2022-10-31T10:59:16Z")

</div>

Hey @denvergeeks, yes the plugins probably need some refactoring. I haven’t given it much attention recently, I will try devote sometime soon.

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [October 31, 2022, 1:56pm UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/5 "2022-10-31T13:56:07Z")

</div>

That would be awesome 🙂

---

<div class="post-metadata">

### Author: ![ghassan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghassan/32/263566_2.png) [@ghassan](https://meta.discourse.org/u/ghassan)
#### Post date: [November 1, 2022, 8:33am UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/6 "2022-11-01T08:33:34Z")

</div>

I am trying to reproduce, but couldn’t for the same exact error you report.

- What is your version of discourse (I tried from the master branch)
- Do you have spesfic plugins, settings that are not typical
- Did you get that error always, no matter the type of topics…etc

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [December 3, 2023, 6:39am UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/7 "2023-12-03T06:39:55Z")

</div>

Hello @ghassan – I still get the same 500 error when saving the Topic post!

- What is your version of discourse (I tried from the master branch)

**I’m all up to date!**

- Do you have specific plugins, settings that are not typical

**I tried removing all other plugins** but the same…

- Did you get that error always, no matter the type of topics…etc

**Yes always – all types of Topics result in the same 500 error!**

This plugin would be so useful, I really do hope you can fix it!!!

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [June 11, 2024, 10:14pm UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/8 "2024-06-11T22:14:34Z")

</div>

Any chance for updating this plugin, @ghassan ?

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [September 5, 2024, 6:20am UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/9 "2024-09-05T06:20:43Z")

</div>

This feature for users to organize Docs pages into sequences would be really nifty with the newly refactored Discourse Docs!

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [September 5, 2024, 8:38am UTC](https://meta.discourse.org/t/discourse-chain-topics-plugin/233088/10 "2024-09-05T08:38:45Z")

</div>

This could probably be done as a theme component, eh?

But then again, it isn’t very difficult to manually put a link at either the top or the bottom of the post.
