I know that we can create a new topic via url with special param. But I want my users to click a link to reply a specific topic. Is there a way to add special params in the url query to auto open reply window for my users? If not, is there a way I can do this?
Thank you for your reply, but what I want is that I want my users to reply
a topic which has already been created by others.
eg. I have a topic A in my forum, and I want every user click this link to
reply under topic A, not to create another topic.
What I posted above works, but remember you don’t need to be on a specific topic to reply to it.
If your requirement is “must navigate to topic page, and then open the composer to reply”, then we don’t have that… but again it’s not required, you can reply to any topic from any other topic (or any location in the Discourse app, in fact) in the composer.
The feature we have right now only supports creating new topic via URL.
What @magoz wants is to have a URL for an existing topic that will open composer and user can start replying on that topic as soon as they visit that URL. This is currently not available and is not on my list right now.
We would love to see this feature as well Would it take a lot of extra work to make this possible, if it’s not already?
Some of our community members are thought leaders or SMEs that run YouTube Live sessions, which is okay (at best) for Q&A and turrrrrible for deeper discussion.
We want to be able to direct users to post their questions to an existing Event Topic (where we’ve used the events plugin) and have the reply window pop up, and ensure that the folks with the questions are posting to the respective SMEs topic.
One of our big value adds to a lot of the folks we’re working with is that we provide a place where they can engage with their users in deeper discussion.
When they do a YouTube or FB live, they are merely STARTING the conversation. Discourse is the perfect tool to CONTINUE the conversation.
If we could simplify the process by having giving a direct URL that people can click, and we can pre-open the reply dialog box, and pre-fill it with some boilerplate text, that would be so helpful!!
I use a simple theme component for this in my instance. Below is an adaptation from mine – which also accepts #upload (a new reply opening the upload window on desktop) and #edit (for wiki OPs) in addition to #reply.
It needs some work, like avoiding setTimeout and correctly managing draftSequence (I don’t think topic.draft_sequence is right), and I don’t know what would be the best practice here. That said, it’s working fine for me.
Navigating to any topic like /t/[slug]/[id]#reply will open the composer with a new empty reply.
If you need some pre-filled text it is doable by setting the reply attribute on the object passed to composer.open. Plus, if there’s already a draft for that topic, it will ask if you want to save/discard it before creating this new reply – draftSequence needs to be correct if the desired behavior is resuming that draft.