Reply Template

There has been a big update to the component, can you try to update it and see how it goes for you please?

2 Likes

Hi, sorry for my slow reply. I’ve just checked and it’s still not working for me.

This is how it still appears.

I’m still seeing an error message saying the theme has errors either in CSS, HTML or YAML. We’ve found a workaround for now and it could also be an issue with the version of Discourse we’re running.

The direct message template feature (action="create_pm") used not to work on our instance. It displayed a private message composer, but once one would hit “send”, it turned the message into a—usually public—topic!

I’ve added a quickfix in a fork by copying some fragments from discourse/discourse:

I think what did the trick was adding the archetypeId: "private_message". I would, however, think that the bug actually is that it’s possible to open a composer that lures users into thinking they are composing a private message and then making it public without warning.

1 Like

Yes sorry I just tried it and it works fine I expect it to be related to your setup. If you show me the exact full error, maybe I can help.

1 Like

Yes you are right, I will change this. thanks.

2 Likes

No problem. I think the problem is with our setup, so I’ll fix that first and come back to you.

Thanks for your help!

2 Likes

Hi thanks for this theme component.
Would it be possible to add another special key
It’s for an exercise routine template

$today - today’s date

Edit:-
Hi first ever PR … hope I got it right … works on my instance
Took two goes (how do you hide your mistakes on github?)
… oh well that’s one off the bucket list … just the API to crack next

5 Likes

5 posts were split to a new topic: Set message button text based on the PM’s recipients

Greetings. Can I use this feature to reply to a specific message in the current topic?

A post was split to a new topic: Add reply templates

is there any way to place [wrap][/wrap] Tags inside the reply template somehow? I tried \ to escape the character, but that won’t do the trick.

categoryId is not working for me

console error says

Category.findById called with a string ID

see screenshot below… any guidance how to make it work?

topic-template is not related to this theme-component. What are you trying to do exactly?

1 Like

I’m trying to create a new topic using the reply template component and specifying a categoryId=“31”

Are there a hidden feature to use this for specific topics? A work-around would be to move the given topic to a category dedicated for the template, but that’s a bit silly.

I’d like a option to have a template mapped for one specific topic, used on every reply in that specific topic.

1 Like

I think that you are describing the exact functionality of this TC, but it might not work in the way you expect.

Instead of utilising the core category templates functionality, this adds a per-topic template that the user must activate by clicking on the relevant part of the OP (or similar).

It works very nicely where the category that contains it has this setting active:

image

2 Likes

I was looking for this specific feature; it would be really useful in common LMS contexts.

1 Like

You’re right. It’s almost what I’m asking for, but it still needs a better implementation to target specific topics. And a better way of forcing a text to be added, once the user hits “Reply”. Let’s see if someone picks up the idea. It would be a great addition, to a already good theme component.

1 Like