Composr Supplementary: Separate forums for separate zones
Written by kenno, Edited by Chris Graham (ocProducts)This tutorial will show how to set up separate forums on individual zones using the Composr virtual roots feature.
I also wanted it so that you could not view the main forum pages any more.
Basic outlineThe forum pages (modules) in Composr are:
What I had to do was set up transparent redirects and virtual-root the forum modules for each of my zones. This gives the look to the user that the forum pages run separately. In actuality they do not run separately, but it is an effective illusion.
Instructions you can follow
Create our zone-specific forumGo to Admin Zone > Structure > Forums.
In the normal way, create a forum for our zone, underneath the forum root.
Set up redirectsGo to Admin Zone > Structure > Redirects.
Let's imagine our new zone is called foo…
You'd set up these redirects:
- foo:forumview → forum:forumview, with transparent checked.
- foo:topicview → forum:topicview, with transparent checked.
- foo:topics → forum:topics, with transparent checked.
Now we have the forum pages running from our foo zone !
Set up virtual rootsWe could now naively edit the menus inside our foo zone to have a link to foo:forumview.
However, if we were to link to them directly, it'd go to the forum root. We want to go to the forum we created.
This is where virtual roots come in.
You can generate a URL that "pretends" that it is the root of the forum tree, and then use this URL on that menu:
- Browse to your new forum.
- In the breadcrumbs, click the final node in it, which corresponds to the forum you are at.
- After clicking it you will see magically the breadcrumbs change so it appears this is the root forum.
- Copy the current address bar URL to the clipboard.
- Go edit your foo zone's menu, and putting the URL from your clipboard in as your new menu link.
Remove main forum linksYou will probably want to remove all links to the main forum, as we want users to access forums via our individual zones.
Do this via normal menu editing techniques.
Please rate this tutorial:
Have a suggestion? Report an issue on the tracker.