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
Q&A How can I add post types to a category?

1 answer  ·  posted 3y ago by Trilarion‭  ·  last activity 2y ago by Monica Cellio‭

#5: Post edited by user avatar Trilarion‭ · 2022-01-12T22:16:36Z (almost 3 years ago)
updated
  • I added a first category to a development instance and wanted to create a first post but realized there are no post types available:
  • ![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)
  • I then tried to define post types for that category in `edit category/posting`, but couldn't:
  • ![Cannot add post types to category.](https://collab.codidact.org/uploads/e4wq6QsabYc5bQUMbVYUCagW)
  • The selection list was empty, even though I had edited all available allowed post types (Answer, Article, HelpDoc, PolicyDoc). The setup guide and Git README do not mention post types.
  • How can I add post types to a category?
  • ----
  • After going to `admin/post-types` and creating another post type additionally to Answer, Article, HelpDoc, PolicyDoc called Question and simply clicking on save, I can create a post, but it's not visible in the Posts list of the category. As suggested by [this answer](https://collab.codidact.org/posts/285516/285520#answer-285520) I have run again (and had run before) `rails db:seed`. Maybe this is the point where I should simply start again with the setup of QPixel.
  • I ran earlier into this in a slightly different way, now I redid the whole QPixel setup but the problem persists:
  • I added a first category to a development instance and wanted to create a first post but realized there are no post types available:
  • ![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)
  • I then tried to define post types for that category in `edit category/posting` but it looked strange:
  • ![Strange dropdowns in category edit](https://collab.codidact.org/uploads/7tknKfG5WPWyFfgVnfkt2oCN)
  • The selection lists for post type and tag set have an empty line at the beginning. After some editing (including defining a new post type and allowing at least three post types in "Allowed post types") I can create a Post but only as one of the three allowed post types (an Article).
  • It may be related to problems with [rails db:seed](https://collab.codidact.org/posts/285521).
#4: Post edited by user avatar Trilarion‭ · 2022-01-09T19:38:51Z (almost 3 years ago)
  • I added a first category to a development instance and wanted to create a first post but realized there are no post types available:
  • ![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)
  • I then tried to define post types for that category in `edit category/posting`, but couldn't:
  • ![Cannot add post types to category.](https://collab.codidact.org/uploads/e4wq6QsabYc5bQUMbVYUCagW)
  • The selection list was empty, even though I had edited all available allowed post types (Answer, Article, HelpDoc, PolicyDoc). The setup guide and Git README do not mention post types.
  • How can I add post types to a category?
  • ----
  • After going to `admin/post-types` and creating another post type additionally to Answer, Article, HelpDoc, PolicyDoc called Question and simply clicking on save, I can create a post, but it's not visible in the Posts list of the category. As suggested by [this answer](https://collab.codidact.org/posts/285516/285520#answer-285520) I have run `rails db:seed`. Maybe this is the point where I should simply start again with the setup of QPixel.
  • I added a first category to a development instance and wanted to create a first post but realized there are no post types available:
  • ![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)
  • I then tried to define post types for that category in `edit category/posting`, but couldn't:
  • ![Cannot add post types to category.](https://collab.codidact.org/uploads/e4wq6QsabYc5bQUMbVYUCagW)
  • The selection list was empty, even though I had edited all available allowed post types (Answer, Article, HelpDoc, PolicyDoc). The setup guide and Git README do not mention post types.
  • How can I add post types to a category?
  • ----
  • After going to `admin/post-types` and creating another post type additionally to Answer, Article, HelpDoc, PolicyDoc called Question and simply clicking on save, I can create a post, but it's not visible in the Posts list of the category. As suggested by [this answer](https://collab.codidact.org/posts/285516/285520#answer-285520) I have run again (and had run before) `rails db:seed`. Maybe this is the point where I should simply start again with the setup of QPixel.
#3: Post edited by user avatar Trilarion‭ · 2022-01-09T19:37:46Z (almost 3 years ago)
added info
  • I added a first category to a development instance and wanted to create a first post but realized there are no post types available:
  • ![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)
  • I then tried to define post types for that category in `edit category/posting`, but couldn't:
  • ![Cannot add post types to category.](https://collab.codidact.org/uploads/e4wq6QsabYc5bQUMbVYUCagW)
  • The selection list was empty, even though I had edited all available allowed post types (Answer, Article, HelpDoc, PolicyDoc). The setup guide and Git README do not mention post types.
  • How can I add post types to a category?
  • I added a first category to a development instance and wanted to create a first post but realized there are no post types available:
  • ![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)
  • I then tried to define post types for that category in `edit category/posting`, but couldn't:
  • ![Cannot add post types to category.](https://collab.codidact.org/uploads/e4wq6QsabYc5bQUMbVYUCagW)
  • The selection list was empty, even though I had edited all available allowed post types (Answer, Article, HelpDoc, PolicyDoc). The setup guide and Git README do not mention post types.
  • How can I add post types to a category?
  • ----
  • After going to `admin/post-types` and creating another post type additionally to Answer, Article, HelpDoc, PolicyDoc called Question and simply clicking on save, I can create a post, but it's not visible in the Posts list of the category. As suggested by [this answer](https://collab.codidact.org/posts/285516/285520#answer-285520) I have run `rails db:seed`. Maybe this is the point where I should simply start again with the setup of QPixel.
#2: Post edited by user avatar Trilarion‭ · 2022-01-09T11:46:11Z (almost 3 years ago)
  • I added a first category to a development instance and wanted to create a first post but realized there are no post types available:
  • ![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)
  • I then tried to define post types for that category in `edit category/posting`, but couldn't:
  • ![Cannot add post types to category.](https://collab.codidact.org/uploads/e4wq6QsabYc5bQUMbVYUCagW)
  • The selection list was empty, even though I had edited all available allowed post types (Answer, Article, HelpDoc, PolicyDoc).
  • How can I add post types to a category?
  • I added a first category to a development instance and wanted to create a first post but realized there are no post types available:
  • ![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)
  • I then tried to define post types for that category in `edit category/posting`, but couldn't:
  • ![Cannot add post types to category.](https://collab.codidact.org/uploads/e4wq6QsabYc5bQUMbVYUCagW)
  • The selection list was empty, even though I had edited all available allowed post types (Answer, Article, HelpDoc, PolicyDoc). The setup guide and Git README do not mention post types.
  • How can I add post types to a category?
#1: Initial revision by user avatar Trilarion‭ · 2022-01-09T11:34:35Z (almost 3 years ago)
How can I add post types to a category?
I added a first category to a development instance and wanted to create a first post but realized there are no post types available:

![Trying to create a post without a post type](https://collab.codidact.org/uploads/bXU97PP4i7mrMyLfSBpoibdU)

I then tried to define post types for that category in `edit category/posting`, but couldn't:

![Cannot add post types to category.](https://collab.codidact.org/uploads/e4wq6QsabYc5bQUMbVYUCagW)

The selection list was empty, even though I had edited all available allowed post types (Answer, Article, HelpDoc, PolicyDoc).

How can I add post types to a category?