When replying as a new thread we could populate the body with a quote from the post we've come from.

Comments

rsaddington’s picture

Here's a patch that will inject a [quote] from the previous post and set the value of a hidden field thread_cont_from.

The field is hidden rather than access false and this should allow for collecting the value in the submit handler - @to do.

Let me know if this is the approach you would have used.

rsaddington’s picture

Status: Active » Needs review
heylookalive’s picture

As discussed I don't think that it makes sense to make the choice as to what the text field should be prepopulated with so we'll make this optional with the following choices:
Nothing
Quote the post
One line stating "This thread is a continuation of [thread name and link]."

heylookalive’s picture

Status: Needs review » Active
rsaddington’s picture

Status: Active » Needs review
StatusFileSize
new3.65 KB
new35.36 KB

Here's a patch that extends this to provide an admin option as described.

heylookalive’s picture

Status: Needs review » Active

Hey Rich, just digging in to this now. Have resolved the issue with the field not being prepopulated, for some reason the feature didn't contain the entity ref prepopulate setting, latest dev remedies. Looking at the settings for prepopulate style which will tie into entity_quote a small amount.

heylookalive’s picture

Status: Active » Needs review

Hey Rich, this is now in dev. Thanks for the patch but quite a lot has changed now that we've got bundles for Thread. The setting is now per thread type.

Ready for testing!

heylookalive’s picture

Further development of this feature could be allowing admins to set the "link back to the post" type of reference text.