Tina: what becomes what
A reference to go with From Tina.
Fields
Tina field | CaraCMS field |
|---|---|
string | text() |
string shown as a textarea | text(), with several lines |
string with options | select(), keeping Tina’s labels |
string named href, or one you list as an address | link(), an address alone |
number | number() |
boolean | toggle() |
datetime | date(). The day, in the time zone you name. |
image with an alt field beside it | media(), image only. The pair becomes one value. |
image with no alt field | media(), marked decorative |
A label and an address side by side | One link() |
A list of label, address and style | buttons() |
object | group() |
A list of objects | list(). A list of one field is flattened to a list of that field. |
reference | reference() |
rich-text | richText(), with the headings and links Tina’s toolbar allowed |
The field marked as the title | The document’s own title |
Every label and description is carried into the new config.
Collections and documents
- A collection with a list of templates becomes a sections collection, and each template a block.
- Any other collection becomes a fields collection.
- Block keys go from camelCase to kebab case, so textMedia becomes text-media, unless you rename one.
- Tina’s home page file becomes index.
- A hidden toggle on a page becomes the page’s own Hidden from the site.
- The collection Tina used for global settings becomes Site Settings.
Rich text
Tina stores rich text as Markdown. It’s converted to CaraCMS’s rich text:
In Tina’s Markdown | In CaraCMS |
|---|---|
Paragraphs, bold, italic, links | Kept. |
Second and third-level headings | Kept. |
Bulleted and numbered lists | Kept. |
A deeper heading | A paragraph, with a warning. |
A nested list | Flattened into its parent list, with a warning. |
A picture, code, quote or table in a body | A block of its own, where the collection’s bodies become blocks. |
An MDX component Tina’s schema declares | A block, its attributes as fields. |
An MDX component the schema doesn’t declare, or raw HTML | Named in a warning. |
Images
Every image the content uses gets a new key, made from its bytes, and is uploaded to the site’s media. The same picture used twice is stored once.
Where Tina kept it | How it’s moved |
|---|---|
In the repo, under the public folder | Read from the checkout and uploaded. |
On another site | Fetched and uploaded, with --fetch-images. |
A link to a file such as a PDF under public/ | Not moved. The file stays in public/ and the link works as before. |
An image’s alt text is carried over where Tina had it beside the image. Uploads go to the site’s CaraCMS Cloud folder with its key, or to its own bucket when standalone. Without either, the content is still written and the script says the images aren’t uploaded yet.
What goes, and what replaces it
Tina’s | Replaced by |
|---|---|
The tina/ folder and Tina’s packages | caracms.config.ts |
Tina’s admin | The editor at /admin |
Pages that read through Tina’s client or Astro content collections | One catch-all route and the page component |
A body drawn from Markdown | RichText, or the body’s blocks |
Tina’s field markers and visual-editing code | CaraCMS’s own, added only in the editor’s preview |
The sitemap integration | CaraCMS’s /sitemap.xml |
Tina Cloud’s client id and token | Nothing. Removed at the switch. |
The header, footer, fonts, motion, analytics and the site’s own logic all stay.
The choices at the top of the script
Entry | What it’s for |
|---|---|
blockRenames | A block’s new key, where you want something other than the default. |
fieldDefaults | A value Tina’s files leave out but the old code read as set. |
addressFields | Text fields that are really addresses. Tina’s schema doesn’t say which are. |
holders | Which page holds which collection, such as the Blog page and its posts. |
settings | Which Tina collection becomes Site Settings. |
publicFolder | Where Tina kept images in the repo, if not the usual place. |
timeZone | The time zone dates are read in. |
redirects | Old addresses to send to new ones. |
What isn’t covered
- TOML and JSON frontmatter.
- Shortcodes in Markdown files.
- MDX components used inside a paragraph, which stay as text.
- A Markdown body in a collection that is already a section builder: it stays rich text, and what doesn’t fit is named.
llms.txt · llms-full.txt: this site for AI tools