Need to create custom static page as home page

Hi,
I need a way by which I can create a custom static page, use jquery over it for calling third-party API and use it as a home page for my site. I have already used two plugins which are as follows:

  1. procourse-static-pages
  2. discpage with discourse-home-page plugin

But none of above fulfill my requirement. If I use the first one then, I am not able to use any js code or jquery on the page. If I go for the second one then, It creates a category for the static page and further use topic under this created category as static page which is not so reliable. Is there any other way to do this?

Feedback appreciated
Thanks

2 Likes

Hi @Rajeev
You can try Landing Pages Plugin 🛩 - link to code
GitHub - paviliondev/discourse-landing-pages

There is a way to add jquery there

2 Likes

Thanks for feedback @4ong .

I have tried this plugin but getting challenges with it. Please have a look at the screenshots.

1 Like

Hi @Rajeev
I may be not the best one to help with localhost as I’ve never used this combination.
And don’t have time to check just now. It works well with my production domain on server.

@angus Maybe you know a quick solution in this case? Thank you!

Hi @Rajeev I will be able to check it tomorrow - I’m back to my additional localhost development :slight_smile:

1 Like

Hi @Rajeev
I’ve tested on localhost and the plugin works correctly

image

So can you describe more about the problem that you have - maybe we will find a solution together.

1 Like

@4ong I appreciate that you are concerning about my issue. I want to know how you setup your local host. Are you running it as docker image or standalone application by ruby server ?. Because I am running it as standalone by ember and ruby server.

Thanks

1 Like

Standalone in Ubuntu (WSL2). You can also try Docker way like described here:

3 Likes

I know it’s late to reply, but did you merge the database? Perhaps this can serve as a solution for others