Landing Pages Plugin đŸ›©

Apparently there is another issue (this time loading the landing page)


When you open any landing page created with the plugin, none of the JS files are loaded, example:

Refused to load the script ‘https://clientes.propulsa.me/plugins/discourse-landing-pages/javascripts/common.js’ because it violates the following Content Security Policy directive: “script-src ‘nonce-C5lZ5MgP8dUHzGFnmwwI3epSx’ ‘strict-dynamic’”. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback


But there are 3 JS trying to load in any single landing page:

I tried with different themes (Default, Air Theme and Mint) and although the plugin load the specifics CSS of the selected theme configured, the JS are blocked.

1 Like

Ah, yeah, probably work to do here, because of Experimenting with a 'strict-dynamic' Content Security Policy (CSP)

Currently we’ve only been supporting 3.2 stable recently, hence some of these snags.

I’ll take a look at some point.

1 Like

Thanks for the info


I read that its an option you can change in the admin panel, so I did and is working fine now :smiley:

For reference, here’s the option you can disable in the admin panel (enabled by default):

Thanks again for the assistance Robert!

Just to point out you can now display arbitrary pages within Discourse using the Landing Pages Plugin in combination with a couple of extensions:

2 Likes

Ok, this looks great, lots of potential, thinking I could even dump the need for wordpress by using it

But reading through the history here is sketchy to trust creating a number of pages and find a single update could negate it all, temporarily or permanent if support ceases again

Is there any hope this becomes part of the official core so an entire site could be built with it and not have to be concerned about those issues?

Hey, Robert, my understanding is that this plugin was always intended for creating landing pages (which by definition are standalone web pages). It has of course the potential for building a site à la Wordpress, but it might not be an appropriate tool as I don’t think it was designed with that use case in mind.

Regarding support, it has been under active maintenence for the last year, and I’m personally planning on keep doing that for the foreseeable future. Not sure what are the requirements for a plugin to be built onto Discourse core, so I suppose this is the “best” commitment you would get.

2 Likes
  1. If you switch to Stable, things work for longer, generally

  2. Our clients often have budgets which allow them to commission updates to support upgrades.

1 Like

I don’t know what that means, but I could not rebuild recently with three unofficial plugins installed, this being one, so I elected to remove all three and plan to just try and keep it that way.

Stable branch.

Yes, you need significant enough resources to run some customisations. If not, best stick with vanilla.

1 Like

See, IDK the difference between stable and official, what a PR or fork are and what significant enough resources means, I have 2 vCPUs/2GB Ram, if I had more of either my rebuilds may not fail with unofficial plugins?

Financial or relevant development skills.

1 Like

So stable means hosted solution?

1 Like

Hello guys,

I am developing a Discourse instance for Auroville community.
I am trying to use the landing page plugin instead of another wordpress site to keep it all in one server. I’m fairly new to web development but getting there.
I am trying to fetch the header and sidebar and other components like, list of recent posts from a category, "who’s online’, etc, so I can display it on a customised “dashboard” page for example. The page should feel like we are on the same platform, so the user if logged in can see his avatar. I managed to create a page with the list of posts from a category but having difficulty with the rest. I can copy the whole page source code and paste it in my github repo but thats not functional for some obvious reason which I need to understand. It probably has been discussed somewhere but haven’t yet found such discussion. Could anyone please guide me towards the knowledge I seek?

Cheers

Actual Discourse instance

Example of custom dashboard page:

1 Like

That’s a good goal.

Did you see this Post?

I built this extension exactly for the scenario you describe.

Follow the guide and let us know how to get on.

If you have budget I can get more directly involved in implementing your requirements.

3 Likes

Thank you for the quick reply Robert.
I came across this briefly. I will dig it up and update.

1 Like

Unfortunately how do I add this , because we are using discourse hosting and not locally.

Sorry, but you can’t, unless you self-host your forum.

1 Like

Or use Communiteq.

I believe that the only way you can get it with discourse.com hosting is via their Enterprise offering.

4 Likes

thanks @nathank, its unfortunate that we cant implement the plugin without an enterprise plan.