No internet connection
  1. Home
  2. Ideas

Different category per site for embedded comments

By Marco Jakobs @marco2021-02-10 20:05:16.538Z

When using Talkyard for embedded comments from multiple sites it would be much more clearly layed out if for each website an own category would be automatically created.

i.e.:

Comments from the site "mydomain.de" should create a category "mydomain.de" with the first comment which is created and put all comments from this site into this category. Comments from the site "otherdomain.de" should create the category "otherdomain.de" and so on.

Without this, visiting the overview of the Talkyard server itself is a bit a mess without the ability to filter easily by the site the comment comes from.

  • 5 replies
  1. KajMagnus @KajMagnus2021-02-12 16:15:36.887Z2021-02-12 16:23:54.332Z

    You can add this data- attribute to the <div class="talkyard-comments">:

    <div class="talkyard-comments" data-category="extid:per_domain_category" data-discussion-id="..."></div>
    

    That'll place the comments in the category with external id per_domain_category. This is an id of your choosing — and you specify it in the Edit Category dialog, at the bottom (looks like this by default: "External ID (optional): None").

    Comments from the site "mydomain.de" should create a category "mydomain.de" with the first comment which is created and put all comments from this site into this category

    Hmm this probably won't be supported the nearest time.

    Currently, you'll need to create categories manually, and add your own external ids. (I think you can just use the domain name.) There's an API for upserting categories, so theoretically, an external software thing could do this. Although I suspect you don't have that many domains? (So not worth the time to create such a software thing?)

    ***

    B.t.w. it's a good question :- )   this really should be in the docs. I'm adding sub categories to Ty currently, so that there can be a "How To" docs sub category, with things like this.

    visiting the overview of the Talkyard server itself is a bit a mess without the ability to filter easily by the site the comment comes from

    Once sub categories is in place, you could have a Comments base category, with a sub category per blog domain.
    And there could be other base categories, if your whole "network of sites" share some common things .... categories? to talk about.

    B.t.w. when you create a blog comments site via Ty .io, the blog comments list is by default visible to mods & admins only.

    1. MMarco Jakobs @marco2021-02-12 18:24:40.945Z

      I'm absolutely fine with creating the categories manually :-) I'll try that solution you posted above!

      However, I can't get a blog comments site up and running. Right after the installation the non-revertable checkbox "Use forum features" is activated by default and can't be switched off. I've put a question regarding this here: How to run a Talkyard for embedded comments only (disable forum features)

      I'd appreciate if you can tell me the magic how I can create a blog-comments-only site on my server, that's basically what I need.

      1. KajMagnus @KajMagnus2021-02-14 17:38:30.780Z

        I'll reply about that later today (sorry for the late reply)

        1. MMarco Jakobs @marco2021-02-14 20:51:16.585Z

          That's OK ... you deserve a weekend, too :-)

          1. KajMagnus @KajMagnus2021-02-18 15:27:54.874Z

            (Thanks :- ))