# Discourse Docs + Pavilion Layouts Plugin

**URL:** https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608
**Category:** Support
**Created:** [November 8, 2021, 9:36pm UTC](https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608 "2021-11-08T21:36:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Fma965](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fma965/32/259795_2.png) [@Fma965](https://meta.discourse.org/u/Fma965)
#### Post date: [November 8, 2021, 9:36pm UTC](https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608/1 "2021-11-08T21:36:22Z")

</div>

Hi All,

Does any one know how I can make the Layouts Plugin ([Layouts - Pavilion](https://thepavilion.io/c/knowledge/discourse/layouts/131)) show on Discourse Docs pages

> [@Discourse Docs](https://meta.discourse.org/t/discourse-docs-documentation-management-plugin/130172):
>
> warning This plugin is being retired in favour of the experimental [Doc Categories plugin](https://meta.discourse.org/t/discourse-doc-categories/322376). We will still support Docs until the new plugin is no longer considered experimental. discourse2Summary Discourse Docs provides the ability to find and filter knowledge base topicshammer_and_wrenchRepository Link [https://github.com/discourse/discourse-docs](https://github.com/discourse/discourse-docs)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)Features The Discourse Docs plugin is a powerful tool that…

You can see an example of the side bar on any page on [https://community.cyanlabs.net](https://community.cyanlabs.net/) and then that it’s missing here [Docs - CyanLabs Official Community](https://community.cyanlabs.net/docs)

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [November 9, 2021, 5:45am UTC](https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608/2 "2021-11-09T05:45:11Z")

</div>

@merefield @keegan any ideas?

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [November 9, 2021, 3:47pm UTC](https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608/3 "2021-11-09T15:47:35Z")

</div>

@Fma965 @osioke

Unfortunately, the Layouts plugin at this time doesn’t support custom contexts.

Although the layouts plugin supports a variety of Discourse routes, since the docs plugin creates a new custom route at `/docs`, it’s not currently possible to add layouts there.

Perhaps this is a feature we may consider including in the future.

---

<div class="post-metadata">

### Author: ![Fma965](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fma965/32/259795_2.png) [@Fma965](https://meta.discourse.org/u/Fma965)
#### Post date: [November 9, 2021, 3:52pm UTC](https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608/4 "2021-11-09T15:52:34Z")

</div>

Thanks,

Ofcourse everything is possible, any suggestions on where to look to implement this myself in a somewhat hacky way?

Ruby isn’t my language of choice but maybe I can still wing it somehow with some pointers?

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [November 9, 2021, 4:03pm UTC](https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608/5 "2021-11-09T16:03:05Z")

</div>

@Fma965

Have a look at this commit:  
[https://github.com/paviliondev/discourse-layouts/commit/a09d135a6f90056dafa654f3d9dd19f4dfb0a6a9](https://github.com/paviliondev/discourse-layouts/commit/a09d135a6f90056dafa654f3d9dd19f4dfb0a6a9)

where @angus added 3 new contexts for the plugin. It might point you in the right direction.

---

<div class="post-metadata">

### Author: ![Fma965](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fma965/32/259795_2.png) [@Fma965](https://meta.discourse.org/u/Fma965)
#### Post date: [November 9, 2021, 5:33pm UTC](https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608/6 "2021-11-09T17:33:33Z")

</div>

Many thanks 🙂 i will take a look shortly

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 9, 2021, 5:33pm UTC](https://meta.discourse.org/t/discourse-docs-pavilion-layouts-plugin/208608/7 "2021-12-09T17:33:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
