I am adding the ForumEmbedTopic components programmatically like this
$topicProperties = [
'embedCode' => $course->channel->slug . '||' . $module->channel->slug . '||' . $lesson->slug,
'channelSlug' => $module->channel->slug,
];
$component = $this->addComponent('RainLab\Forum\Components\ForumEmbedTopic', 'lessonEmbedTopic', $topicProperties);
the component ForumTopic is displayed correctly in the the page only the first time the page is displayed.
in that situation, when I try to post a comment, I have an AJAX Error AJAX handler 'onPost' was not found.
then when I refresh the page, I see No Topic Found
In the database, a new topic has been created. No post has been created.
Not sure to understand where is the issue here.
Any suggestion please ?
I am adding the
ForumEmbedTopiccomponents programmatically like thisthe component
ForumTopicis displayed correctly in the the page only the first time the page is displayed.in that situation, when I try to post a comment, I have an AJAX Error
AJAX handler 'onPost' was not found.then when I refresh the page, I see
No Topic FoundIn the database, a new topic has been created. No post has been created.
Not sure to understand where is the issue here.
Any suggestion please ?