Tinacms Developer Docs

26 September 2024

The transcription focuses on debugging and enhancing features within TinaCMS, especially regarding media handling, custom field functionality, and configuration options. Here’s a summary of the main points:

🤖🤖

  1. Media Path and Image Handling:

    • The team discussed issues with images displaying incorrectly in production versus local environments. Problems included media paths showing full directory structures (/public/uploads) when they shouldn’t, and debugging attempts pointed towards configuration differences in Tina Cloud and local setups.
  2. Custom Reference Field Filtering:

    • A custom reference field was developed to support filtering and dynamically display authors based on a domain (e.g., filtering by location). They discussed potential future improvements, like using other form inputs to dynamically filter lists based on user-defined functions.
  3. Table Support in Rich Text Fields:

    • There were challenges with embedding tables in TinaCMS’s rich text editor, particularly in terms of markdown compatibility. Jeff explained GitHub-flavored markdown’s limitations with tables and suggested disabling unsupported elements, like headers within tables, to avoid user confusion.
  4. Content Security Policy with Hugo:

    • Issues with Hugo’s Content Security Policy (CSP) blocking Tina Cloud’s login functionality were discussed. The solution may involve user-side adjustments to relax CSP settings in Hugo, as the integration primarily uses local storage for authentication and does not align with Hugo’s strict static setup.
  5. Testing Enhancements:

    • Tests for rich text functionality, particularly for table handling and embedded components, were emphasized to ensure smooth functionality when dealing with complex markdown structures.

This session highlighted ongoing efforts to improve TinaCMS’s media handling, custom field flexibility, markdown support, and compatibility with frameworks like Hugo. The team is actively working on addressing these areas while documenting limitations and enhancing testing strategies.

On this page