where can I define categories on my instance?
thanks,
Emma
Users are seeking guidance on adding categories in Discourse. communitygal asks where to define categories. cpradio and Johani direct users to the /categories page and highlight the “Create Category” button, which JamieGlopoll initially couldn’t find—later resolving the issue by navigating correctly JamieGlopoll. anon23840344 also reports missing the button, prompting codinghorror to note that only admins can create categories. cratag asks about assigning custom numbers to categories; Jonathan5 explains IDs are auto-assigned, but cratag shares they manually edited the category ID in the database to set it to 78. Jonathan5 and cratag discuss potential risks of editing IDs directly, with cratag noting no issues yet but cautioning it’s untested long-term. HAWK and HAWK suggest reviewing howto topics for setup help.
where can I define categories on my instance?
thanks,
Emma
Go to /categories, to the right of the navigation is a menu, Create Category should be in it.
Have a read through some of the topics in the howto section – they’ll guide you through a lot of this setup stuff.
I have the latest version of Discourse. I’m getting it organized before launching it to the public. The option to add new categories is missing. I follow the instructions:
" To add a category, visit the categories page , then click Create Category at the upper right."
There is no “Create Category” button so I’m at a dead end. Any help would be greatly appreciated.
Incredible! That solved my problem. Thank you for getting me unstuck ![]()
Sembra che tu non sia un amministratore, solo gli amministratori possono aggiungere categorie, se ricordo bene.
e come aggiungo un numero alla nuova categoria?
Vuoi dire il numero che appare alla fine dell’URL? Vorrei potesse essere modificato, ma per quanto ne sappia viene assegnato automaticamente.
No, intendevo aggiungere un numero a una categoria specifica: voglio creare un post nella categoria “78”, il che significa che il post sarà nella categoria “Instagram”.
La tua domanda non è ancora chiara, scusa.
Potresti estrarre l’ID della categoria dall’URL e modificare il titolo della categoria per includerlo, ad esempio “78. Instagram”.
L’URL forum.example.com/c/78 reindirizza alla pagina della categoria.
Penso che l’ID della categoria venga incrementato automaticamente, quindi non puoi semplicemente scegliere un numero (per quanto ne so).
Scusa, hai ragione. Ho dovuto creare la categoria e modificarne il numero nel database di avvio di Discourse.
E sì, Jonathan5. Ha funzionato perfettamente. Grazie!
Non sto dicendo di avere il DOC, ma sarei interessato a sapere come farlo…
Bene, dopo aver installato lo sviluppo locale di Discourse per Ubuntu ed eseguito i comandi rails db:create e rails db:migrate, ho avviato il server con rails s.
Poi sono andato su localhost di Discourse e ho creato una categoria con il mio account amministratore.
Successivamente, ho effettuato l’accesso a pgAdmin e, all’interno del database discourse_development, ho aperto la tabella categories. Lì c’era la mia nuova categoria con un ID di 3 (credo) – ho semplicemente modificato quell’ID in 78 e salvato.
Quindi si tratta solo di cambiare l’id nella tabella categories? Tentante.
Potrebbero esserci conseguenze indesiderate?
Ha qualche significato il fatto che Uncategorised=1, Staff=3, Lounge=4 ecc.?
BisognerĂ ricreare gli URL ovunque (ad esempio nel testo dei post)?
Grazie.
Finora non ho visto veri e propri fallimenti, ma non ho usato l’app per molto tempo. Mi dispiace, non posso rispondere alle tue domande. Forse qualcuno può dare una mano?