Categories & Tags
Chinaski gives posts a one-level category taxonomy and lightweight tags, plus a separate tag system for documents. This page explains how each behaves and what maintenance operations exist.
Categories
Categories organize posts. Each category has a name, slug, description, and a language, and categories live per language: renaming one language’s “News” into another language’s spelling doesn’t disturb the rest.
- Unique per language: two live categories can’t share a slug within the same language, but the same slug may exist across languages (parallel-language editions of the same category).
- Posts select from a type-ahead list of existing categories in the post form.
- Category archives are built per language and paginated like the blog index, complete with canonical URLs and page-number canonical handling for pages beyond the first; sticky posts sort to the top there just like elsewhere.
- Deleting a trashed category frees its slug for reuse (uniqueness applies only among live categories).
Renaming
Renaming a category from the list screen updates the category itself and every post currently using it in that language. The rename is per language, and it’s atomic; the entire rename rolls back if anything fails. If another live category in that language already has the target name, that source is skipped and reported in the result. Renames are audited.
One caveat: category slugs and archive URLs are derived from the category name, but automatic URL redirects for category renames aren’t part of this flow (that machinery is documented for post slug changes). If users or search engines hold onto the old category URL, add a redirect manually in the redirects screen.
Merging and reassigning
- Merge into moves every post from the selected source categories into a target category and deletes the sources.
- Reassign & delete (the category edit screen’s delete path) moves a category’s posts to another category and then deletes the empty one.
- The merge target must include both name and language; delete attempts that would leave posts stranded go through reassign first. Merges run in a transaction and are audited.
Descriptions
Each category stores a description. Whether descriptions appear on built category pages depends on your theme; the field itself is available for internal editorial notes too.
Tags (posts)
Posts have a free-form tags field. Beyond per-post editing, the posts list supports bulk tag operations on selected posts: add, remove, or replace tags across many posts at once (a confirmation shows how many posts were changed).
Where tags surface:
- In every post webhook payload (integration systems can key off them).
- In the API and admin views.
There is deliberately no public per-tag page on the built site; tags are editorial metadata and integration glue, not a browsing taxonomy. If your site needs keyword browsing, use categories (they build real archives per language).
Tags (documents)
Documents (downloadable files) use their own tag system (names with optional colors) managed from the documents screens. Document tags are a distinct table from post tags, so each has its own namespace.
Housekeeping tips
- Use rename (not delete+recreate) to fix a category’s spelling: rename updates the posts atomically; delete-then-create leaves posts stranded in a now-nonexistent category.
- Use merge when two categories turned out to be the same thing; merge moves all posts and removes the duplicates.
- Remember that categories are per language: a site with en/es editions normally keeps a category per language, and “merge into” must target the same language.