Convert Article to Thread
Hi Bob, I can only find the ability to convert thread to article. How can I enable this to convert a submitted article to a thread?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Convert Article to Thread
Thanks, I have the permissions but it didn't work on articles in unapproved or draft state. Is there a way to make it possible? Often I am converting to thread because it doesn't meet article criteria.The Convert Article to Thread function is a AMS Article Moderator Only function and requires the AMS Article Moderator Permission "Convert article to thread".
View attachment 9317
If the viewing user is a moderator and they have the appropriate permissions (Edit article and Convert article to thread) and the article is not in "draft" or "awaiting publishing", then they will see the action link "Convert to thread" in the more options dropdown menu of a given article...
View attachment 9316
It should work for unapproved (in the approval queue with the state 'moderated'). I stated in my reply that it won't work for articles in DRAFT or AWAITING (which is a draft that is scheduled to be auto published in the future).Thanks, I have the permissions but it didn't work on articles in unapproved or draft state. Is there a way to make it possible? Often I am converting to thread because it doesn't meet article criteria.
public function canConvertToThread(&$error = null)
{
$visitor = \XF::visitor();
if (in_array($this->article_state, ['draft','awaiting']))
{
return false;
}
return (
$visitor->user_id
&& $this->hasPermission('editAny')
&& $this->hasPermission('convertToThread')
);
}