Can you create a custom landing page?

I understand the normal homepage, and modifying that. I also understand banners and pinning topics.

What if I wanted a unique landing page for referring people from a specific location, maybe I wanted to highlight specific topics on this landing page etc – is there anyway to do something like this?

I found this topic, but it didn’t solve my concern

No, not at the moment. We’ve discussed the ability to create static pages in Discourse, and will possibly have something within the next 6 months or so (sorry can’t be more specific than that!).

Is there anything specific that are you looking to accomplish (I assume custom layout is one big component) that wouldn’t be covered by linking to a specific topic?

4 Likes

There are a couple plugins that may help but not sure how extensive to acheive your desired end.

This plugin may help but plugin author said it may break along the way.

There is also a couple of plugins that do forms of static pages like

And

3 Likes

If I may so bold to bump this topic, I’ve been researching to create some sort of static page to embed fTELNET client on - has there been any further development or will embedded js script work with DiscPage or ProCourse?

Have you explored Landing Pages Plugin 🛩 yet?

4 Likes

@nathank No - Will give it a shot!

1 Like

So what happened in the end? Do I need to use a load balancer or is there a native function for that? It’s been almost 5 years since you mentioned it, currently it can only be done with plugins, but apparently these plugins tend to break the system.

we have a page publishing feature now, check out Page Publishing

That’s not a landing page.

I wonder… what if a Theme Component were used to redirect / to the published page? Not sure how many things would break, though.

That makes me think of the custom homepage feature. Not sure if there is a documentation topic. The topic I remember is

3 Likes

The ‘documentation’ is in DEV: allow themes to render their own custom homepage by pmusaraj · Pull Request #26291 · discourse/discourse · GitHub, I believe. I don’t believe there is a proper Documentation topic for that.

2 Likes

It is if you land people on it :smiley:

If it needs to be the homepage, it is also possible to have entirely custom homepages using the custom-homepage outlet in a theme: DEV: allow themes to render their own custom homepage by pmusaraj · Pull Request #26291 · discourse/discourse · GitHub… going this route you’d be able to build custom content based on whatever conditions you need. You could show different content using a query param like /?src=ad-campaign for example

3 Likes