No internet connection
  1. Home
  2. Support

Embedding Talkyard / Custom Template

By Devin Bayer @akvadrako2021-01-22 08:53:45.103Z

I am looking for a replacement for discourse and talkyard seems like a top contender, but I would like the design of the forum to be fully integrated into my website. So I have a couple questions:

Is it possible to embed talkyard on another page, like as a web component?

Or if not, how easy is it to customize the forum template?

I can't find the docs where either of these things would be described.

  • 4 replies
  1. KajMagnus @KajMagnus2021-01-25 09:21:15.876Z

    Is it possible to embed talkyard on another page, like as a web component?

    You'd like to embed a whole Talkyard site / forum? One can do that via an <iframe> but it's not so user friendly. For example, the left and right sidebars then open inside the iframe, which isn't so user friendly (I think).

    Long term, it's something I'd like to make work well.

    Currently, embedding individual discussion topics (e.g. comments for a blog post) works fine though.

    how easy is it to customize the forum template?

    Currently one edits custom HTML and CSS. There'll be color & font pickers later, and a custom top menu builder. Until then, here's some HTML and CSS you can reuse:

    And even more CSS:

    1. ADevin Bayer @akvadrako2021-01-25 09:43:56.756Z

      Thanks for the pointers Kaj. I would like to have the whole forum integrated with my site and indeed iframe wouldn't be good enough.

      Customizing the template is an alternative; my main concern is that it's easy to automate the process from my build process. HTML/CSS for the header is a good start; it looks like I need to just install talkyard and try it out to see what's supported.

      1. KajMagnus @KajMagnus2021-01-25 10:19:59.853Z

        automate the process from my build process

        Makes me wonder what's the build process?

        Maybe related: This topic about customizing Ty via configuration files, instead of via the admin interface:

        1. ADevin Bayer @akvadrako2021-01-25 11:04:23.224Z

          Makes me wonder what's the build process?

          I build static HTML/JS/CSS from Svelte templates. So I could output templates for Talkyard (like header or whole page).

          Maybe related: This topic about customizing Ty via configuration files

          Yes, this is much preferable. If I could just add those generated templates plus other config to the Ty container image it would be ideal.