Site structure
Version 5.x > Site structure > Setting "Forum group base URL" for Workgroup Forums View modes: 
User avatar
Member
Member
dlents-coleyfederal - 6/13/2011 3:39:11 PM
   
Setting "Forum group base URL" for Workgroup Forums
How can I automatically set the workgroup "Forum base URL" value?

The Kentico Intranet Portal uses the following site structure.


Root
-- Forums
-- Workgroups
-- Create
-- Template
-- Forums
-- Message Boards
-- Blogs
-- Wikis

We added a "Collaboration" node to contain Forums, Message Boards, Blogs, & Wikis

Root
-- Forums
-- Workgroups
-- Create
-- Template
-- Collaboration
-- Forums
-- Message Boards
-- Blogs
-- Wikis

What modifications should I make to ensure that the "Forum base URL:" value automatically includes our intermediate "Collaboration" node?
Subscribers receive an email with a link based on the "Forum base URL" and it does not include our "Collaboration" node.

I can change each workgroup "Forum base URL" value with the following procedure, but I'd like that value set automatically when a new forum is created.

M A N U A L P R O C E D U R E
- CMSDesk
- Click Tools tab
- Click Groups node in the Tools tree
- Click the edit icon (pencil) for a group.
- Click the Forums tab
- Click the edit icon for a forum group.
- Click the edit icon for a forum
- Cick the General tab
- Modify the "Forum group base URL" setting to include our Collaboration node.
- Repeat for each forum.


User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 6/14/2011 12:36:10 AM
   
RE:Setting "Forum group base URL" for Workgroup Forums
Hello,


you can change the location of forum page in:

~\CMSModules\Groups\Controls\GroupRegistration.ascx.cs

There are lines:

line 29: private const string FORUM_DOCUMENT_ALIAS = "forums";

line 819: baseUrl = CMSContext.GetUrl(groupDocument.NodeAliasPath + "/" + FORUM_DOCUMENT_ALIAS);

in that control. groupDocument.NodeAliasPath means the value of Group pages location.

You can change one of these lines to specify your custom path. I understand the settings could be more flexible for this case. I have forwarded the issue to our developers so that they could enhance the flexibility.


Best regards,
Helena Grulichova

User avatar
Member
Member
dlents-coleyfederal - 6/14/2011 11:30:33 AM
   
RE:Setting "Forum group base URL" for Workgroup Forums
Helena,
Thanks. Changing the value for FORUM_DOCUMENT_ALIAS did the trick.


Changing the default Intranet Portal workgroup structure also required modifications for Message Boards and Blogs

Message Boards:
- Open CMSDesk
- Click on the Message Board page in the workgroup template
- Click on the Group Message Board web part configuration
- Click "New board Settings"
- Set the "Board base URL:" value
e.g. ~/Workgroups/{%CommunityContext.CurrentGroup.GroupName%}/Collaboration/Blogs/Create.aspx

~Danny