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.
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.
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.
And we havenāt redirected you to /welcome in the last 5 minutes.
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.
Are there any known incompatibilities with other plugins? Iām having issues installing this and suspect the procourse static pages might be the culprit.
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.
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.
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.
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.
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 | Welcome
{
"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.
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.
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!
Hope that helps you get started. The example page from the video is here: Try Pavilion | Bootstrap
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.