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 个赞

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 个赞

如果我可以大胆地顶一下这个帖子,我一直在研究创建一个可以嵌入fTELNET客户端的静态页面——是否有进一步的开发,或者嵌入的js脚本是否可以与DiscPage或ProCourse一起使用?

您是否已经浏览过 Landing Pages Plugin 🛩

4 个赞

@nathank 不 - 我会试试!

1 个赞

最后发生了什么?我需要使用负载均衡器(load balancer)还是有原生的函数可以实现?你提到这件事已经快5年了,目前只能通过插件来实现,但这些插件似乎容易导致系统崩溃。

我们现在有了页面发布功能,请查看 Page Publishing

那不是一个登陆页面。

我猜……如果使用主题组件将“/”重定向到已发布的页面会怎样?不过不确定会有多少东西会中断。

这让我想起了自定义主页功能。不确定是否有相关的文档主题。我记得的主题是

3 个赞

“文档”在 https://github.com/discourse/discourse/pull/26291,我猜是这样。我不认为有一个适当的 Documentation 主题来讨论那个。

2 个赞

如果你能把人送上去,那就可以 :smiley:

如果它需要是主页,也可以使用主题中的 custom-homepage 出口来实现完全自定义的主页:DEV: allow themes to render their own custom homepage by pmusaraj · Pull Request #26291 · discourse/discourse · GitHub… 走这条路,你就可以根据你需要的任何条件来构建自定义内容。例如,你可以使用查询参数,如 /?src=ad-campaign 来显示不同的内容。

3 个赞