# Landing Pages Plugin 🛩

**URL:** https://meta.discourse.org/t/landing-pages-plugin/180967
**Category:** Plugin
**Tags:** pavilion
**Created:** [February 24, 2021, 4:09am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967 "2021-02-24T04:09:40Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [February 24, 2021, 4:09am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/1 "2021-02-24T04:09:41Z")

</div>

The Landing Pages Plugin lets you make standalone landing pages for your Discourse instance. You can display topics, users and other content from your forum. You can restrict pages to groups, apply Discourse themes, set custom paths, and manage pages in a dedicated git repository.

[![Screen Shot 2021-02-23 at 6.11.10 PM](https://global.discourse-cdn.com/meta/original/3X/6/a/6a814baa278270159f5f099c0656fbbdc5b48703.jpeg)](https://thepavilion.io/welcome)

🖥[**Get the code**](https://github.com/paviliondev/discourse-landing-pages)

📄 [**Read the documentation**](https://coop.pavilion.tech/docs?category=130)

🙋‍♀️ **[Request a feature](https://coop.pavilion.tech/c/support/discourse-landing-pages/131)**

🐛 **[Report a bug](https://coop.pavilion.tech/c/support/discourse-landing-pages/131)**

Not sure how to install a plugin? [Follow the steps here](https://meta.discourse.org/t/install-plugins-in-discourse/19157).

### Quick Links

[Adding and Editing Pages](https://coop.pavilion.tech/docs?topic=3062)  
[Page Attributes](https://coop.pavilion.tech/docs?topic=3063)  
[Page Asset Management](https://coop.pavilion.tech/docs?topic=3064)  
[Partials and Helpers](https://coop.pavilion.tech/docs?topic=3065)  
[Global Attributes](https://coop.pavilion.tech/docs?topic=3066)  
[Pavilion’s Landing Pages](https://github.com/paviliondev/pavilion-landing-pages)  
[Pavilion’s Landing Theme](https://github.com/paviliondev/pavilion-landing-theme)

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [February 24, 2021, 4:20am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/2 "2021-02-24T04:20:34Z")

</div>

That is a wonderful plugin! Can’t wait to use it even more!

---

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [February 24, 2021, 7:56am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/3 "2021-02-24T07:56:06Z")

</div>

Hey @angus

Did you include (or can you include) a site setting to change the Discourse root route to make the root route the specified landing page for the site?

This is a small addition (if it is not included already) and would help users who do not want to fiddle around with their web server and do redirects, etc; and therefore, I think would make this plugin even better.

---

<div class="post-metadata">

### Author: ![reclaimedpress](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@reclaimedpress](https://meta.discourse.org/u/reclaimedpress)
#### Post date: [March 1, 2021, 4:23pm UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/4 "2021-03-01T16:23:04Z")

</div>

How does one customize pages.json without connecting a repo?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [March 4, 2021, 7:16am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/5 "2021-03-04T07:16:41Z")

</div>

Thanks for the feedback guys.

> [@neounix](#):
>
> Did you include (or can you include) a site setting to change the Discourse root route to make the root route the specified landing page for the site?

Yes, I’m hoping to do that soon. Would you want that in all circumstances though? A list of desired outcomes for guests v users and any other factors would help me think it through.

Here’s the [rudimentary patch](https://github.com/paviliondev/discourse-pavilion/blob/master/plugin.rb#L75) I made to [thepavilion.io](http://thepavilion.io) to handle that.

Perform the redirect from `/` to `/welcome`.

- If you’re a guest
- And you go directly to [thepavilion.io](http://thepavilion.io) (i.e. base path)
- And we haven’t redirected you to `/welcome` in the last 5 minutes.

> [@reclaimedpress](#):
>
> How does one customize pages.json without connecting a repo?

The only way currently is via a zip upload or a repo connection. You can’t do that via the admin UI yet. But yes, the plan is to add a new “page” for site wide settings.

---

<div class="post-metadata">

### Author: ![cookieman768](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cookieman768/32/118511_2.png) [@cookieman768](https://meta.discourse.org/u/cookieman768)
#### Post date: [April 21, 2021, 2:40am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/6 "2021-04-21T02:40:28Z")

</div>

Are there any known incompatibilities with other plugins? I’m having issues installing this and suspect the procourse static pages might be the culprit.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 22, 2021, 7:09am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/7 "2021-04-22T07:09:47Z")

</div>

I haven’t tested it, but there shouldn’t be any conflicts. The ProCourse static pages plugin is fundamentally different from this plugin from a technical perspective.

Share the specific issue you’re having and we’ll see if we can help.

---

<div class="post-metadata">

### Author: ![Paul\_King1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paul_king1/32/218888_2.png) [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)
#### Post date: [April 25, 2021, 5:23pm UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/8 "2021-04-25T17:23:27Z")

</div>

I was having issues with the plugin so I deleted the git from app.yml.

I reinstalled it but all the previous data is still in there.

How can I delete it?

(Basically at the moment when I create a new page. I can add some html but all this over stuff shows like my logo and some footer from pavilion) But I cannot find out where this is being pulled from.

Thanks

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 25, 2021, 10:38pm UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/9 "2021-04-25T22:38:16Z")

</div>

Just delete all the landing pages in the Landing Pages Admin UI and remove your repository connection.

> [@Paul\_King1](#):
>
> I can add some html but all this over stuff shows like my logo and some footer from pavilion) But I cannot find out where this is being pulled from.

You’re using the pages.json in the Pavilion Landing Pages repo. You need to use your own details there. More on that here:

> **[Pavilion](https://pavilion.tech/)**
>
> Pavilion is the leading Discourse consultancy.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 26, 2021, 2:59am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/10 "2021-04-26T02:59:15Z")

</div>

As the global `pages.json` is proving to be the most confusing / limiting piece of this plugin so far (I’ve received a fair bit of feedback about that), I’ve added it to the Admin UI. Note the “See further” links in the notes that will take you directly to the relevant part of the docs.

[https://github.com/paviliondev/discourse-landing-pages/commit/2363a74a1829450719a4ad553df836e440948102](https://github.com/paviliondev/discourse-landing-pages/commit/2363a74a1829450719a4ad553df836e440948102)

 ![Screenshot at Apr 26 12-56-49](https://global.discourse-cdn.com/meta/original/3X/2/4/24ef13b7cd91a2c1f0b1f031512496c3d565adbd.png)

The header and footer attributes will be further defined extended over time (and be editable via a UI instead of via JSON), however at this early stage some flexibility there is best.

---

<div class="post-metadata">

### Author: ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)
#### Post date: [April 26, 2021, 3:19am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/11 "2021-04-26T03:19:36Z")

</div>

I was surprised that this utility was so good that you shared it with everyone for free. Really admire your talent. ⭐ ⭐ ⭐ ⭐ ⭐

---

<div class="post-metadata">

### Author: ![Paul\_King1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paul_king1/32/218888_2.png) [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)
#### Post date: [April 26, 2021, 5:00am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/12 "2021-04-26T05:00:44Z")

</div>

Much much easier is that! Thank you very much for that update. 🙂

---

<div class="post-metadata">

### Author: ![Paul\_King1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paul_king1/32/218888_2.png) [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)
#### Post date: [April 26, 2021, 5:35am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/14 "2021-04-26T05:35:23Z")

</div>

Hello, Am I missing some CSS file or something somewhere?

I can see the global header but its not displaying properly.

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/4/24d4dc5d035a76e88bae47d839d645c100fcce16.png)

Also when I make any edits in the global settings. When I try to save it, it just continuously loads.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/a/fa49cedc5ef780594d1d838cc31ab77aa5d5ffbb.png)

This is the only error I can see:

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

Thank you in advance.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 26, 2021, 10:50am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/15 "2021-04-26T10:50:10Z")

</div>

hm, not sure what’s going on there. That console error is unconnected to the landing pages Admin UI. Does this happen every time? Does it happen when you updated specific attributes?

The update is working fine for me in production, for example I just added 🙋‍♀️ to the “notice” in our landing pages header: [Pavilion](https://thepavilion.io/welcome)

![Screen Shot 2021-04-26 at 8.48.44 PM](https://global.discourse-cdn.com/meta/original/3X/8/f/8fdc33dcdd56194d5261afa6cb29fb2cc19cfb40.png)

```plaintext
{
    "root": "/welcome",
    "notice": {
        "href": "/join",
        "text": "We're looking for new members 🙋‍♀️"
    }
}

```

edit: @Paul_King1 you’re attempting to use bootstrap right? I’ll use this opportunity to create a set of example pages using bootstrap which you can base yours off of. Give me a week.

---

<div class="post-metadata">

### Author: ![Paul\_King1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paul_king1/32/218888_2.png) [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)
#### Post date: [April 26, 2021, 11:04am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/16 "2021-04-26T11:04:01Z")

</div>

Very much appreciated! Kind regards.

---

<div class="post-metadata">

### Author: ![Paul\_King1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paul_king1/32/218888_2.png) [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)
#### Post date: [April 26, 2021, 11:41am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/17 "2021-04-26T11:41:37Z")

</div>

@angus sorry just to confirm the console error was from the test page I made, front end. Not the Admin side.

Regards.

---

<div class="post-metadata">

### Author: ![cookieman768](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cookieman768/32/118511_2.png) [@cookieman768](https://meta.discourse.org/u/cookieman768)
#### Post date: [April 27, 2021, 4:38pm UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/18 "2021-04-27T16:38:40Z")

</div>

Thanks for the reply, I’ll have to fiddle with it then. It’s probably something specific to my installation if I had to guess. I’ll have to see if there’s a specific error being report, but it won’t let me rebuild the app with this plugin added.

---

<div class="post-metadata">

### Author: ![Paul\_King1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paul_king1/32/218888_2.png) [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)
#### Post date: [May 7, 2021, 7:08pm UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/19 "2021-05-07T19:08:18Z")

</div>

I am still unable to get bootstrap working on the landing pages. I have tried everything and nothin works.

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/2/c2542f6c46f2d76aef02751c1e9dccc073344c39.png)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 13, 2021, 11:00am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/20 "2021-05-13T11:00:20Z")

</div>

Hey @Paul_King1 sorry for the delay, it’s been a busy few weeks. I decided to make you a little video on the easiest way of using bootstrap with the plugin. It’s a bit late here and I wasn’t using a script, so apologies for any rambling!

https://www.loom.com/embed/4d53c31fe12b49cf809a4301e5f19694

Hope that helps you get started. The example page from the video is here: [https://try.thepavilion.io/bootstrap](https://try.thepavilion.io/bootstrap)

---

<div class="post-metadata">

### Author: ![dliuproduction](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dliuproduction/32/226793_2.png) [@dliuproduction](https://meta.discourse.org/u/dliuproduction)
#### Post date: [July 14, 2021, 7:33am UTC](https://meta.discourse.org/t/landing-pages-plugin/180967/21 "2021-07-14T07:33:01Z")

</div>

Hey Angus, thanks for this superb plugin. I’m trying to implement the home redirect patch to redirect `/` to `/welcome`. I added your rudimentary patch to the `plugin.rb` of `discourse-landing-pages` plugin repo but it isn’t working.

This is most likely due to my lack of understanding of how it actually works.

Could you point me in the right direction to implement this? I am a experienced JS dev but just started to learn ruby and discourse architecture.

[Next page](https://meta.discourse.org/t/landing-pages-plugin/180967.md?page=2)
