# How to add books? There are many chapters in a book, arranged in a specific order

**URL:** <https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531>\
**Category:** Routing\
**Created:** [June 1, 2022, 7:08am UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531 "2022-06-01T07:08:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![XYH](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/xyh/32/18010_2.png) [@XYH](https://forum.ghost.org/u/XYH)\
**Post date:** [June 1, 2022, 7:08am UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531/1 "2022-06-01T07:08:49Z")

</div>

I’m a programmer and novelist. I want to know how I should add a book?

### My ideal routing format is:

[https://xxxx.com/novel/${novel}](https://xxxx.com/novel/$%7Bnovel%7D) → novel introduction, novel chapter catalogue (sorted)  
[https://xxxx.com/novel/${novel}/${chapter}](https://xxxx.com/novel/$%7Bnovel%7D/$%7Bchapter%7D) → chapter details

### Can I add it to one of the places?

 ![QQ20220601-150553](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/d/9/d9c70e0e80917106469bc60094254ca0f4d3a399.png)

* * *

Thank you very much for your help!

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [June 1, 2022, 7:24am UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531/2 "2022-06-01T07:24:49Z")

</div>

Welcome to to community, @XYH.

This thread may provide some ideas or insight.

> [@Can Ghost be used to create a novel site?](https://forum.ghost.org/t/can-ghost-be-used-to-create-a-novel-site/20031):
>
> My idea is to create a site where my readers can read the chapters of my novels as posts, and that when they click on a “next post” button, they are brought to the next chapter of the specific novel they’re on, and not just to any other post or chapters from other novels. I could manually achieve this by adding next/previous links on each posts, but considering I have over 4 novels and with tons of chapters each, it’s really not efficient. Along with this, I will need a permalink structure for …

---

<div class="post-metadata">

**Author:** ![RyanF](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ryanf/32/17448_2.png) [@RyanF](https://forum.ghost.org/u/RyanF)\
**Post date:** [June 1, 2022, 3:01pm UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531/3 "2022-06-01T15:01:48Z")

</div>

This is a good use case for custom routing.

In `routes.yaml`, you could do something like this, where the `book-title` would be whatever novels you’re using. You’d need to add an entry for every book.

```yaml
collections:
  /novel/book-title/:
    permalink: /novel/book-title/{slug}
    filter: tag:book-title
  /novel/book-title2/:
    permalink: /novel/book-title2/{slug}
    filter: tag:book-title2

```

Find more resources on custom routing:

> **[Ghost Themes - Dynamic URLs & Routing](https://ghost.org/docs/themes/routing/)**
>
> Build dedicated URL structures using Ghost's dynamic routing system, for custom homepages, podcasts, categories and more.

> **[Building content collections in Ghost](https://ghost.org/tutorials/content-collections/)**
>
> Ever wanted to create a curated group of posts on your Ghost site? With collections, you can! In this tutorial, we’ll show you what you need to know to create content collections.

---

<div class="post-metadata">

**Author:** ![denvergeeks](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/denvergeeks/32/7401_2.png) [@denvergeeks](https://forum.ghost.org/u/denvergeeks)\
**Post date:** [June 2, 2022, 9:52am UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531/4 "2022-06-02T09:52:01Z")

</div>

Another way (without downloading and uploading the routes.yml over and over again), and/or if you want to manage your ordering strictly in the admin panel, you can re-purpose the Date/Time setting for each post/page. If each post/page has its own Day or Hour or Minute assigned to it, then you can still insert and remove content without changing the settings for every other post.

Until some clever theme builder provides a custom theme setting for this (I vote for a modal popup containing draggable, nestable post ordering per Tag :-) …

This blessed soul took a crack at it (I installed it on one of my sites and it does the job too). It also has some handy built in formatting controls for the reader (changing text size and style, plus dark/light/sepia modes.) It’s also super minimal and displays well on mobile:

(You have to right-click and translate the Github page which is in Chinese)

> **[GitHub - whaios/wwiki: 用于搭建个人 Wiki 文档库的 Ghost 主题](https://github.com/whaios/wwiki)**
>
> 用于搭建个人 Wiki 文档库的 Ghost 主题. Contribute to whaios/wwiki development by creating an account on GitHub.

You can see where I have it running (at least for a short time while I test and tinker with it):

> **[A Collection of Books](https://wwiki.ghost.pub)**
>
> Read from our selection of Novellas!

Front Page of Site…

 ![Screenshot 2022-06-02 034803](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/f/1/f150df321f90e015f3ea7c7e647d9fc0a796db64.png)

Individual Book…

 ![Screenshot 2022-06-02 034513](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/9/a/9aacc87af6150f4b299a0e49cedf40e6539e9017.png)

---

<div class="post-metadata">

**Author:** ![denvergeeks](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/denvergeeks/32/7401_2.png) [@denvergeeks](https://forum.ghost.org/u/denvergeeks)\
**Post date:** [September 6, 2022, 6:00am UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531/5 "2022-09-06T06:00:28Z")

</div>

I had another thought about this…

@themeix has a new theme wherein you can structure and sequence posts using tags…

> **[Learn Ghost Theme - Themeix Support Portal](https://support.themeix.com/category/ghost-themes/learn-ghost-theme/)**

 ![Screenshot 2022-09-05 235500](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/9/7/97c41b408e0aebffe1b5ff1775219fa17e6af506.png)

 ![Screenshot 2022-09-05 235650](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/6/c/6c473d107993a7614f175e6a2a0d1655322a9542.png)

And while @themeix has purposed the theme’s tags structure for Courses and Lessons, it seems to me simple enough to adapt it for Books and Chapters.

@themeix do you have any thoughts about this?

---

<div class="post-metadata">

**Author:** ![themeix](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/themeix/32/4472_2.png) [@themeix](https://forum.ghost.org/u/themeix)\
**Post date:** [September 6, 2022, 6:20am UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531/6 "2022-09-06T06:20:36Z")

</div>

> [@denvergeeks](#):
>
> @themeix do you have any thoughts about this?

Yes, You are correct… Its possible…

---

<div class="post-metadata">

**Author:** ![chipwarren](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chipwarren](https://forum.ghost.org/u/chipwarren)\
**Post date:** [November 26, 2022, 3:20pm UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531/7 "2022-11-26T15:20:59Z")

</div>

That thread actually doesn’t have any solutions, by the way. I’m looking to do the same thing and haven’t found a solution yet.

---

<div class="post-metadata">

**Author:** ![ROY](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/roy/32/36059_2.png) [@ROY](https://forum.ghost.org/u/ROY)\
**Post date:** [July 9, 2024, 6:02pm UTC](https://forum.ghost.org/t/how-to-add-books-there-are-many-chapters-in-a-book-arranged-in-a-specific-order/30531/9 "2024-07-09T18:02:24Z")

</div>

> [@denvergeeks](#):
>
> [Click Allow](https://support.themeix.com/category/ghost-themes/learn-ghost-theme/)

Any updates on this?
