Skip to content

Using the forumEmbedTopic component #156

@chrisvidal

Description

@chrisvidal

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions