Reply Template

I added more locales to your component and created a PR. Please, check.

1 Like

How can i install this component?

In my opinion it’d be more helpful to have an example for the reply case (without action=create) because this is probably the reason, the majority is searching for since creating a topic is already possible via URL

My try:

  • ok
  • fail
2 Likes

Would it be possible to use a template to create a new personal message?

Also, when someone is not signed in, clicking on “Use template as reply” does not result in any action. Could you add functionality where if a user is not logged in, something happens to nudge them to log in or create a new account?

4 Likes

Great suggestion, it’s done, I updated the OP.

4 Likes

Is there a way to pre-populate the title of a new topic?

Is there a way to automatically add tags instead of having just the tag list?

3 Likes

No, but that’s reasonable feature request for sure. I’m kinda full ATM but making a note of this, thanks.

4 Likes

Is there any possible way to modify the stock reply button in a topic with such a template?
That would be a gamechanger for specific structured conversations in the forum. Especially for contests etc where users have to submit content in a structured manner.

1 Like

Hi, sorry I don’t understand your request, can you be more specific please ?

Currently the user can access the reply template only via the button in the first post generated by the theme component.
What I would like to achieve is to enable the template for the stock reply buttons in the topic as well (reply button below the timeline and reply button below the last post)

Edit: One prolific use case is a topic where users can leave feedback like bug reports etc. If we could add per-topic post templates just like for per-category templates for new topics, that would lead to less incomplete reports and hence save our staff a lot of time.

3 Likes

Hello,

I am having some trouble installing this component. I’m new to Discourse so hoping someone can confirm if the steps I’ve taken are correct.

I followed the guide here How do I install a Theme or Theme Component? to install the component. I’ve included the component on all of our themes.

However, when I create a new topic and include

My reusable content

  • task 1
  • task 2

There is no button for “Use template as reply”. Example:

It just shows the wrapper around the template. Am I missing a step here? Is there something I need to customise in the code?

Also, Discourse is saying the theme has errors either in CSS, HTML or YAML. I’m not sure if that has something to do with why the button doesn’t display?

Thanks for any help.

Will have a look tomorrow

2 Likes

Thanks. I’ve been informed it may also be an issue with the version of Discourse we’re running but will come back on that.

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

1 Like

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