Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Getting at another page's ad-hoc forum View modes: 
User avatar
Member
Member
David C - 7/15/2009 2:32:43 AM
   
Getting at another page's ad-hoc forum
Hi,

I was wondering if there was any way to get at another page's ad-hoc forum.

e.g. if a product listing page has an ad-hoc forum, is there a way to put the same forum on the individual products' pages (where they are children of the listing page).

Even if the forum web part is in the parent template and inherited down onto the child pages via visual inheritance, it still seems to initialize a completely separate ad-hoc forum.

User avatar
Member
Member
David C - 7/15/2009 8:23:53 PM
   
RE:Getting at another page's ad-hoc forum
Think I solved my own problem..

I can identify an ad-hoc forum's ForumName from a DocumentID, and hook it up to a ForumForum control, like so:

ForumInfo fi = ForumInfoProvider.GetForumInfoByDocument(CMSContext.CurrentDocument.DocumentID);
ForumForum1.ForumName = fi.ForumName;

By passing in a different DocumentID (e.g. the current document's parent) I can get the appropriate ad-hoc forum.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 7/24/2009 7:17:12 AM
   
RE:Getting at another page's ad-hoc forum
Hello.

Thank you for sharing your solution with other people.

Best Regards,
Radek Macalik