Mono Support New "related content" 

Viewed 26103 time(s), 7 post(s), 2/28/2011 10:31:14 AM - by peterg
2/28/2011 10:31:14 AM
246 Reputation 35 Total posts

Hi,

Anyone had some experience using this new webpart.?

Ive added it to my defaultpage but comes up hidden, still trying to figure it out here

Peter

1
2/28/2011 11:57:57 AM
15993 Reputation 2214 Total posts

Hi Peterg,

Related content module is newly introduced in version 4.0. Related content module will try to automatically "connect" content by the content tags and if there are no related content it will hide it self. Module can't function as stand alone so to properly setup the module you need to set "ParentEntityType" property (e.g. BlogPost, DiscussionMessage etc.) and "ParentEntityId" which is the Id of the parent who contains the tags. Module will then try to match parent tags with other content item tags (e.g. Blog post tags) and provide you with a list of links that will point to related content.

I hope this will help you start using the related content module. 

Regards

2
2/28/2011 12:25:26 PM
246 Reputation 35 Total posts

Thanks....ill work on it.

I was about to look into a storeproc to find and replace words fir interlinking pages that we feel is needed for the site, but thanks this is a great new feature.

Peter

3
2/28/2011 12:34:59 PM
246 Reputation 35 Total posts

Sorry for my ignorance but where do you set the properties you mentioned?

Peter

4
2/28/2011 1:10:46 PM
15993 Reputation 2214 Total posts

Hi,

"ParentEntityType" can be set interactively via personalization properties and by code (mark-up or code-behind). While "ParentEntityId" can be set only by code.

Regards

5
2/28/2011 1:27:46 PM
246 Reputation 35 Total posts

Ok thanks so its not there for beginner coders like myself...I will await for further documentation in the future.

Thanks

Peter

6
3/1/2011 9:50:24 AM
7207 Reputation 956 Total posts

RelatedContent and similar parts (SnComments) cannot work in standalone mode - they need to be attached to the parent part (blog, discussion topic, or your custom parts). As Kristijan said, there are two properties that control their behavior, ParentEntityId and ParentEntityType. For example, if you want to attach a related content to the blog post, you would write something like this:

relatedContent.ParentEntityId = post.Id;
relatedContent.ParentEntityType = SnEntityType.BlogPost;

Where relatedContent is your Web part, and post is a blog post entity.

7
This is a demo site for MonoX. Please visit Mono Software for more info.