Je construis actuellement un nouveau thème avec Theme Creator/CLI et j’ai eu de bons résultats jusqu’à présent avec CSS, les widgets et les plugin-outlets. Je me demandais s’il existait un fichier/dossier que je pourrais ajouter/modifier pour créer une nouvelle page/route (par exemple, FAQ).
J’ai vu un fil de discussion similaire auparavant, mais les liens étaient en grande partie morts
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 « J'aime »
keegan
(Keegan George)
Novembre 15, 2021, 7:30
2
Je ne pense pas que ce soit possible avec juste un thème. Vous devrez probablement créer un plugin et avoir du code Ruby.
Jetez un œil à ce sujet :
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…
Ou si vous avez simplement besoin de pages personnalisées autonomes pour afficher des informations, il existe le plugin Landing Pages :
2 « J'aime »
HAWK
(Hawk)
Novembre 15, 2021, 11:09
3
3 « J'aime »
Merci ! Cela fonctionne pour mon cas d’utilisation simple !
J’apprécie la réponse de Keegan et j’essaierai cette approche si nécessaire.
3 « J'aime »