He estado creando un nuevo tema con Theme Creator/CLI y hasta ahora me ha ido bien con CSS, widgets y plugin-outlets. Me preguntaba si hay algún archivo/carpeta que pueda agregar/modificar para crear una nueva página/ruta (por ejemplo, FAQ).
Vi un hilo antes que era similar pero los enlaces estaban en su mayoría muertos
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 me gusta
keegan
(Keegan George)
15 Noviembre, 2021 19:30
2
No creo que esto sea posible solo con un tema. Probablemente necesitarás crear un plugin y tener algo de código Ruby.
Echa un vistazo a este tema:
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 we…
O si simplemente necesitas algunas páginas personalizadas independientes para mostrar información, existe el Landing Pages Plugin:
2 Me gusta
HAWK
(Hawk)
15 Noviembre, 2021 23:09
3
3 Me gusta
¡Gracias! ¡Esto funciona para mi caso de uso simple!
Agradezco la respuesta de Keegan y probaré ese enfoque si es necesario.
3 Me gusta