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 ![]()
どうやらあなたは管理者ではないようです。私の記憶では、カテゴリを追加できるのは管理者のみです。
新しいカテゴリに番号を追加するにはどうすればよいですか?
URLの末尾に表示される番号のことですか?変更できるといいのですが、私の知る限り、それは自動的に割り当てられるものです。
いいえ、特定のカテゴリに番号を追加したいという意味でした。カテゴリ「78」に投稿を作成すると、その投稿は「Instagram」カテゴリに含まれることになります。
申し訳ありませんが、まだご質問の内容が明確ではありません。
URL からカテゴリ ID を取得し、カテゴリタイトルに含めるように編集できます。例:「78. Instagram」。
URL forum.example.com/c/78 はカテゴリページに移動します。
私の知る限り、カテゴリ ID は自動でインクリメントされるため、任意の数字を指定することはできません。
申し訳ありません、おっしゃる通りです。カテゴリを作成し、Discourseのブートストラップデータベースでその番号を編集する必要がありました。
そして、はい、Jonathan5 さん。それは完璧に機能しました。ありがとうございます!
私が強迫性障害を持っていると言っているわけではありませんが、その方法について教えていただければ興味があります。
Discourse のローカル開発環境を Ubuntu にインストールし、rails db:create と rails db:migrate を実行した後、rails s でサーバーを起動しました。
その後、Discourse の localhost にアクセスし、管理者アカウントでカテゴリを作成しました。
その後、pgAdmin にログインし、discourse_development データベース内の categories テーブルを開くと、作成したカテゴリが id 3(おそらく)で表示されていました。そこで、その id を 78 に変更して保存しました。
つまり、categories テーブルの id を変更するだけということでしょうか?やりたくなりますね。
予期せぬ副作用はないでしょうか?
Uncategorised=1、Staff=3、Lounge=4 といった値に何か意味があるのでしょうか?
URL(投稿本文内のものなど)を再作成する必要があるでしょうか?
ありがとうございます。
これまでのところ、問題が起きたのを見たことはありませんが、アプリをあまり長く使っていないためです。申し訳ありませんが、お答えできません。誰か補足していただけませんか?