Technical support This forum is closed.
Version 1.x > Technical support > Somethings about "relationship" View modes: 
User avatar
Member
Member
ever - 5/1/2005 8:21:55 PM
   
Somethings about "relationship"
I am not sure what this function is!

I have tried to add the relation between the documents,
but how can i display the related doc?

I have also setted the properties:
RelationshipWithNodeId
RelationshipName
RelatedNodeIsOnTheLeftSide

But how can it display?
<%# DataBinder.Eval(Container.DataItem, "relatedField") %> <-- what should i set for the name?

User avatar
Guest
admin - 5/6/2005 8:46:51 PM
   
Re: Somethings about "relationship"
Hello,

I'm sorry for the delay. Let's say you want to display all related articles to the currently selected article. You need to use one of the following controls:

CMSDataGrid
CMSDataList
CMSRepeater
CMSViewer

You set the control properties so that it displays all articles first. Please check that it works now. Then, you need to set the following properties:

RelationshipWithNodeId
RelationshipName
RelatedNodeIsOnTheLeftSide

The RelationshipWithNodeId usually needs to be assigned dynamically with NodeID of the currently selected document.

The RelationshipName specifies the name of the relationship.

The RelatedNodeIsOnTheLeftSide property indicates if you want to display articles that are on the right side or left side of the relationship with node specified by the RelationshipWithNodeId property.

When you set up these three parameters, you should see only related articles instead of all articles.

Please let me know if it helps.

Best Regards,