Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the forumEmbedTopic component #156

Open
chrisvidal opened this issue Oct 2, 2024 · 2 comments
Open

Using the forumEmbedTopic component #156

chrisvidal opened this issue Oct 2, 2024 · 2 comments

Comments

@chrisvidal
Copy link

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 ?

@daftspunk
Copy link
Member

Unfortunately, the documentation for this feature is missing so I can't test it or confirm the implementation.

@chrisvidal
Copy link
Author

the forum tutorial video I watched is showing the forumEmbedTopic working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants