Loving Tina? ā­ļø us on GitHubStar

Docs

Learn

v.Latest
Introduction
Core Concepts
Querying Content
Editing
Customizing Tina
Going To Production
Media
Drafts
Guides
Further Reference

Congrats! šŸŽ‰

You now have a web page, complete with a title, image, and body! BUT! Right now our awesome-content.tsx component is controlling the layout of our content.

We have our Header, then our image, then our body.

What happens if you want some pages to have the image at the top? Or at the bottom?

It would be pretty neat if we could allow our users to dictate which sections a page will have, along with the order these sections should appear without needing a developer to come in and create/edit the React components.

Let's make this possible now with the power of TinaCMS Templates.

Firstly, to make these fields (title, image, body) rearrangeable, we have to change our schema. We will...

  • Convert each of our fields into a Template.
  • Update the schema to use our cool templates.
  • Wire them up to our HTML!
Last Edited: March 19, 2025