I’ve been going about building a new theme with Theme Creator/CLI and have had a good run so far with CSS, widgets, and plugin-outlets. I was wondering if there’s a file/folder I could add/modify to create a new page/route (e.g FAQ).
I saw a thread before that was similar but the links on it were mostly dead
Hi, I wonder if its possible to create a custom page like FAQ, TOS, and Privacy page. and I also notice that they are actually a Topic. if its not possible to create custom page, how can I make a permalink like FAQ, TOS, and Privacy page.
1 Like
keegan
(Keegan George)
November 15, 2021, 7:30pm
2
I don’t think this is possible with just a theme. You will probably need to create a plugin and have some Ruby code.
Have a look at this topic:
Over time Discourse has grown in complexity and it can be daunting for beginners to understand how data gets all the way from the back end Ruby on Rails application to the Ember.js application in front.
This tutorial is meant to show the full lifecycle of a request in Discourse and explain the steps necessary if you want to build a new page with its own URL in our application.
URLs First
I always prefer to start thinking of features in terms of the URLs to access them. For example let’s say w…
Or if you simply need some standalone custom pages to show information, there is the Landing Pages Plugin:
2 Likes
HAWK
(Hawk)
November 15, 2021, 11:09pm
3
3 Likes
JeaneCarlos
(Jeane Carlos)
November 15, 2021, 11:52pm
4
Thanks! This works for my simple use case!
Appreciate the answer from Keegan and will try that approach if I need to.
3 Likes