MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

New "related content"  (Mono Support )

Viewed 19515 time(s), 7 post(s) 2/28/2011 10:31:14 AMby peterg
peterg

peterg

2/28/2011 10:31:14 AM
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
This content has not been rated yet. 
246 Reputation 35 Total posts
khorvat

khorvat

2/28/2011 11:57:57 AM
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

This content has not been rated yet. 
15993 Reputation 2214 Total posts
peterg

peterg

2/28/2011 12:25:26 PM
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
This content has not been rated yet. 
246 Reputation 35 Total posts
peterg

peterg

2/28/2011 12:34:59 PM
Sorry for my ignorance but where do you set the properties you mentioned?

Peter
This content has not been rated yet. 
246 Reputation 35 Total posts
khorvat

khorvat

2/28/2011 1:10:46 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
peterg

peterg

2/28/2011 1:27:46 PM
Ok thanks so its not there for beginner coders like myself...I will await for further documentation in the future.

Thanks

Peter
This content has not been rated yet. 
246 Reputation 35 Total posts
denis

denis

3/1/2011 9:50:24 AM

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.
This content has not been rated yet. 
7207 Reputation 956 Total posts