I’ve been doing freelance Discourse customization as my primary gig for almost a year at this point. And one of the most common questions I get is about static pages. “Can I just create a static sales page?” “Where’s a good place to put a FAQ without a discussion around it?”
You can likely argue the validity of these questions in most scenarios. The main response being “just close the topic.” But that doesn’t cut it for most. Thus, I decided to create this plugin to make it possible.
It’s pretty simple. You get a backend under Admin > Plugins to create, edit, and delete these pages as you like. It uses the same topic composer we’re used to. Once you have the page built, you can Enable it and share the link to the page wherever you like.
For a demo: LINK IS DEAD.
I should also note that styling is made easier with a class static-page in the wrapping div for the whole page. That way you can do whatever you want to the body of the page from a CSS standpoint in a theme.
I think that I have the same problem - this would be great, but I need the pages to be visible to anon as I have a private site and want some static pages to be exposed to the public.
@joebuhlig - this has been asked a few times in this thread. Do you have any thoughts on it?
I determined that the error is from the code using Discourse.Model, which has been deprecated (I believe in the current version of Discourse it has been fully removed, hence the new error).
I don’t think Joe is maintaining his plugins these days. Someone else will need to create a PR.
That said, we are currently working on a static page feature in core. It’s still in its early stages, but you can try it out by enabling the enable page publishing setting in your site settings. You can create a published page by opening up the post actions menu on a topic (select the … button followed by the wrench button).
Thanks Steven; from a bit of a play it isn’t possible to make them visible to anon on login-required forums. Rats - that is what I really want them for. Still pretty cool though.
It seems that the only way I can get more static content visible to non-logged in users is to either
keep it login-required and use the existing tools:
This. I know that this plugin is primarily to create static pages. However, let’s say you make a calculator application that you want to put in the page. The calculator requires an input from the user. The page still has static code, but it would update the result based on user input. Is this possible using this plugin or is it better just to make an external html/css page with js?
I would like to use a 3rd party widget on a static page. The javascript for this is supposed to be inserted before </body>. Is there a way to achieve this – only on this particular static page? Thanks for your help!
Thanks!
Do you know a wat to use external scripts (not from the same domain) for the static page?
There is always Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). Source: (function injectedScript() {...
Generally speaking - what is the best way to embed f.e. a webstore not in the iframe.
Code example:
I’d like to bring this request back on the table. The plugin is great, but whenever you share such a page it only shows the default metadata. It would be great, if you could specify the title, the description and a custom image. Is the plugin still in active development or should this rather go to the marketplace category? Thanks!