Finora ho costruito un nuovo tema con Theme Creator/CLI e ho avuto un buon successo con CSS, widget e plugin-outlets. Mi stavo chiedendo se ci fosse un file/cartella che potrei aggiungere/modificare per creare una nuova pagina/route (ad esempio FAQ).
Ho visto un thread in precedenza che era simile ma i link erano per lo più morti
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 Mi Piace
keegan
(Keegan George)
15 Novembre 2021, 7:30pm
2
Non credo sia possibile solo con un tema. Probabilmente dovrai creare un plugin e del codice Ruby.
Dai un’occhiata a questo argomento:
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…
Oppure, se hai semplicemente bisogno di alcune pagine personalizzate autonome per mostrare informazioni, c’è il Landing Pages Plugin:
2 Mi Piace
HAWK
(Hawk)
15 Novembre 2021, 11:09pm
3
3 Mi Piace
Grazie! Questo funziona per il mio semplice caso d’uso!
Apprezzo la risposta di Keegan e proverò quell’approccio se necessario.
3 Mi Piace