Landing Pages Plugin šŸ›©

How to get such result? I would like to understand how this is coded through the landing page plugin. Dynamic page can come later. :sweat_smile:

1 Like

Thatā€™s covered in this section: https://coop.pavilion.tech/t/experimental-the-home-pages-add-on-integrate-static-content-from-landing-pages-and-add-dynamic-pages-too/3554?u=merefield#editing-simple-pages-5

(but you will first need to create your first page with the Create button).

If you need more dedicated help you can hire me or one of the team.

We can also help you with Dynamic pages.

Iā€™ve been wrapping my head around this plugin and Iā€™m finally starting to get the hang of it.

However - we have a private Discourse instance. I hadnā€™t realized that by not putting a group restriction that the page would be open to anyone whether logged in or not. So, I restricted the page to only trust level 0, figuring it would be anyone logged in.

But, when visiting the page when logged out, it returns an error; what I would like instead is to go to the login page. Is that possible?

1 Like

I finally got the result I wanted with the sidebar and header by simply changing the settings related to enable and redirect homepage (see below screenshot).

However, when loading the same code, it didnt work as before, the category content wasnā€™t fetched. Not sure how to go about it.


Also tried to use the code in the example with the ā€œsimple html boxesā€ (see below) and got an error msg that ā€œbody is missingā€.

Not sure what you mean by this?

Home pages doesnā€™t support any Category paths (yet, no funding/sponsor).

You are meant to either link the pages in the side bar or in a header component.

It only supports standalone pages.

the settings have to be very simple:

Note all the ā€œblanksā€.

Thatā€™s stated in the guide:

Iā€™ll change that to ā€œsupportedā€

1 Like

Hi there. Is there a Idiot proof guidance for a noob like me to enable the Landingpage established via this plugin, as the Forums Homepage?

My landingpage is pointing to: ā€œhttps://mydomain.com/homeā€ I can access this fine via the url bar. Now what I miss is that when users click inside discourse on the logo at the top left, or when they just enter ā€œhttps://mydomain.comā€ to their url bar. Them to be moved to https://mydomain.com/home instead.

Hi, KilianS, sorry to be this late to your question but at the moment it is not possible to configure a landing page to be your homepage. If the capability gets added it will be notified here.

Wait, wait, if you use the Home Pages extension you can direct the home URL to one of your landing pages within Discourse.

2 Likes

Hi Team,

We are running a self-hosted version of Discourse at my company and weā€™ve set up several Landing pages and display them through the Home Pages plugin, and everything works as intended as long as the pages are not restricted to a particular group.

As soon as we try to restrict a landing page to a group we just get the navigation and an empty page body. Iā€™ve inspected the developers console and discourse logs and found the following:

  • The request for a restricted landing page returns a 403 response
    image

  • Further processing of this requests throws a ā€œnot valid JSONā€ response
    image

  • After this, Discourse JS complains about the lack of data passed to safeHtmlContent method
    image

  • The last error that I am seeing is related to a VM Bug on the page
    image

This completely disables SPA navigation until the user performs a hard refresh of the page (Shift + F5).

Looking at the logs, the only related entries that I could see are these two:

Do you have any ideas on how to troubleshoot this? We have make sure that our Discourse instance is updated to the latest version 3.5.0.beta2-dev .
Let me know if there is any additional info that I can provide from my end in order to get to the bottom of this issue faster.

1 Like

Hey Nikola,

This is because this is not explicitly supported, thatā€™s essentially a feature request.

The client this extension was originally built for didnā€™t require this specific functionality.

The Home Pages add-on only works with a fairly simple setup in Landing Pages.

Iā€™d review a PR to add this feature if you have someone who can submit one?

Or you are welcome to PM me to discuss contracting me to work on it.

1 Like

Hey Robert,

Thank you for the prompt reply. Iā€™ll consult with my team and get back to you if we decide to fund this enhancement request.