Expression Discussion Module Module URL

Has anyone ever successfully integrated the ExpressionEngine discussion module into regular templates?

I can include the {exp:forum} code in one of my templates, and this successfully recreates the forum homepage, but I get a 404 error for each link.

This is because EE is not correctly writing forum links.

Instead of this hyperlink:

/members/discussion-board/viewforum/1/

Instead, I get something like this:

/members/viewforum/1/

I understand that changing the forum URL to use {segment_2} instead of {segment_1} requires some extra configuration.

I followed the instructions for running forums through regular templates with no luck. Any help is greatly appreciated.

I am using ExpressionEngine v2.2.2 with the Forum Forum v3.1.4 module.

+4
source share
1 answer

To enable the ExpressionEngine discussion forum as another URL - in the second segment {segment_2} - you need to configure EE to start the forum using regular patterns .

This question was asked and answered the stack overflow before , but if you have already created a group and a template, you just need to:

  • From the control panel, go to add-ons> Modules> Discussion forum> Default settings
  • Configure your Forum forum settings for the following:

Forum Forum Board Short name: discussion-board
Forum URL: http://example.com/index.php/members/discussion-board/
User-run word: <empty>

At this point, your forum will launch inside the regular EE template template.

Then the forum opens through any template that you created above - instead of the word "trigger" the name of the template is used:

http://www.example.com/members/discussion-board/

+1
source

Source: https://habr.com/ru/post/1383850/


All Articles