Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

60%
+1 −0
#3: Post edited by user avatar Monica Cellio‭ · 2022-05-17T01:28:01Z (almost 2 years ago)
  • I'm surprised that your instance doesn't start with the default post types (question, answer, article). Did you run the database seeds? (`rails db:seed`) That should have set up initial post types, help topics, and probably some other stuff.
  • If you want to define a new post type, go to the admin tools and choose "post types" (`admin/post-types`). There you should see a "create post type" button, which will let you define the properties of the type (such as whether it accepts answers, can be voted on, can be edited by anyone, can have reactions, etc).
  • I just went through this, setting up a dev instance that didn't properly seed (not sure why), so here's a dump of the settings I used for the Question post type:
  • ![transcribed below](https://collab.codidact.org/uploads/3xX4F1EqHJ2A3VjijtuhUvmE)
  • ![see below](https://collab.codidact.org/uploads/qSvWU4bChbR9eMdiKdJJ2bmv)
  • > Name: Question
  • >
  • > Description: (some text I copied from Collab)
  • >
  • > Icon name: fas-fa-question
  • >
  • > Answer type: Answer
  • >
  • > Answers? Y
  • > Votes? Y
  • > Tags? Y
  • > Parented? -
  • > Category? Y
  • > License? Y
  • > Editable? Y
  • > Freely editable? -
  • > Closeable? Y
  • > Top level? Y
  • > Reactions? -
  • > Restrict to specific reactions? Y
  • Did you run the database seeds? (`rails db:seed`) That should have set up initial post types, help topics, and probably some other stuff. (Edit: but it didn't work for me either, so...)
  • If you want to define a new post type, go to the admin tools and choose "post types" (`admin/post-types`). There you should see a "create post type" button, which will let you define the properties of the type (such as whether it accepts answers, can be voted on, can be edited by anyone, can have reactions, etc).
  • I just went through this, setting up a dev instance that didn't properly seed (not sure why), so here's a dump of the settings I used for the Question post type:
  • ![transcribed below](https://collab.codidact.org/uploads/3xX4F1EqHJ2A3VjijtuhUvmE)
  • ![see below](https://collab.codidact.org/uploads/qSvWU4bChbR9eMdiKdJJ2bmv)
  • > Name: Question
  • >
  • > Description: (some text I copied from Collab)
  • >
  • > Icon name: fas-fa-question
  • >
  • > Answer type: Answer
  • >
  • > Answers? Y
  • > Votes? Y
  • > Tags? Y
  • > Parented? -
  • > Category? Y
  • > License? Y
  • > Editable? Y
  • > Freely editable? -
  • > Closeable? Y
  • > Top level? Y
  • > Reactions? -
  • > Restrict to specific reactions? Y
  • After you create the question post type, you have to add it to the category. You need to do this in *two* places, which is a little confusing. First, go to the category settings and click on "edit allowed post types":
  • ![screenshot](https://collab.codidact.org/uploads/hVYrXU7UapEFLrb5y5C48JFj)
  • Create entries for both Question and Answer:
  • ![screenshot](https://collab.codidact.org/uploads/Ck5cR5jZnkPAoSzMSw55teDX)
  • After you do this, check that Question (only) is selected in "Listed Post Types" back in the category settings:
  • ![screenshot](https://collab.codidact.org/uploads/XBWwhUBMTkduCPA3BmkxE3dS)
  • After I did that in both Q&A and Meta (which I had to create because of seeding problems), I was able to create posts.
  • (I didn't have the default meta tags -- a problem for another day.)
#2: Post edited by user avatar Monica Cellio‭ · 2022-05-17T01:20:53Z (almost 2 years ago)
  • I'm surprised that your instance doesn't start with the default post types (question, answer, article). Did you run the database seeds? (`rails db:seed`) That should have set up initial post types, help topics, and probably some other stuff.
  • If you want to define a new post type, go to the admin tools and choose "post types" (`admin/post-types`). There you should see a "create post type" button, which will let you define the properties of the type (such as whether it accepts answers, can be voted on, can be edited by anyone, can have reactions, etc).
  • I'm surprised that your instance doesn't start with the default post types (question, answer, article). Did you run the database seeds? (`rails db:seed`) That should have set up initial post types, help topics, and probably some other stuff.
  • If you want to define a new post type, go to the admin tools and choose "post types" (`admin/post-types`). There you should see a "create post type" button, which will let you define the properties of the type (such as whether it accepts answers, can be voted on, can be edited by anyone, can have reactions, etc).
  • I just went through this, setting up a dev instance that didn't properly seed (not sure why), so here's a dump of the settings I used for the Question post type:
  • ![transcribed below](https://collab.codidact.org/uploads/3xX4F1EqHJ2A3VjijtuhUvmE)
  • ![see below](https://collab.codidact.org/uploads/qSvWU4bChbR9eMdiKdJJ2bmv)
  • > Name: Question
  • >
  • > Description: (some text I copied from Collab)
  • >
  • > Icon name: fas-fa-question
  • >
  • > Answer type: Answer
  • >
  • > Answers? Y
  • > Votes? Y
  • > Tags? Y
  • > Parented? -
  • > Category? Y
  • > License? Y
  • > Editable? Y
  • > Freely editable? -
  • > Closeable? Y
  • > Top level? Y
  • > Reactions? -
  • > Restrict to specific reactions? Y
#1: Initial revision by user avatar Monica Cellio‭ · 2022-01-09T18:42:37Z (over 2 years ago)
I'm surprised that your instance doesn't start with the default post types (question, answer, article).  Did you run the database seeds?  (`rails db:seed`)  That should have set up initial post types, help topics, and probably some other stuff.

If you want to define a new post type, go to the admin tools and choose "post types" (`admin/post-types`).  There you should see a "create post type" button, which will let you define the properties of the type (such as whether it accepts answers, can be voted on, can be edited by anyone, can have reactions, etc).