Discourse Docs + Pavilion Layouts Plugin

Hi All,

Does any one know how I can make the Layouts Plugin (Layouts - Pavilion) show on Discourse Docs pages

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

1 Like

@merefield @keegan any ideas?

2 Likes

@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.

1 Like

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?

2 Likes

@Fma965

Have a look at this commit:

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

4 Likes

Many thanks :slight_smile: i will take a look shortly

3 Likes

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