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 )

26000 put(a) pogledan, 7 odgovor(a) 28.2.2011. 10:31:14Kreirao(la) peterg
peterg

peterg

28.2.2011. 10:31:14
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
Ovaj sadržaj još nije ocijenjen. 
246 Reputacija 35 Ukupno objava
khorvat

khorvat

28.2.2011. 11:57:57
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

Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
peterg

peterg

28.2.2011. 12:25:26
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
Ovaj sadržaj još nije ocijenjen. 
246 Reputacija 35 Ukupno objava
peterg

peterg

28.2.2011. 12:34:59
Sorry for my ignorance but where do you set the properties you mentioned?

Peter
Ovaj sadržaj još nije ocijenjen. 
246 Reputacija 35 Ukupno objava
khorvat

khorvat

28.2.2011. 13:10:46
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
peterg

peterg

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

Thanks

Peter
Ovaj sadržaj još nije ocijenjen. 
246 Reputacija 35 Ukupno objava
denis

denis

1.3.2011. 9:50:24

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.
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava