Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Relationship best practise in Kooboo 3
Baseless
#1 Posted : Saturday, August 06, 2011 9:39:51 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 6/10/2010(UTC)
Posts: 141
Location: Sweden
Hi!
Playing around with content relationships and has some questions ragerding best practise and what can be done without any custom code.


One-to-many relationships i think is nice, i like that the related content is collected in content folders outside the objects thus accessible easily. One thing though that would be great is if the related objects themselves showed wich content objects they are related to.

Many-to-many relationships (my main question): What is be best practise for these kind of relationships, for example ContenTypetA should be able to be associated to an unlimited number of ContentTypeB objects. ContentTypeB should be linked to 2 objects of ContentTypeA.
Best in this case would be if the form when creating a ContentTypeB contained a dropdown containing the ContentTypeA objects, but i presume this is not possible.

What is the best practise generally and for this example?
Baseless
#2 Posted : Saturday, August 06, 2011 1:24:46 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 6/10/2010(UTC)
Posts: 141
Location: Sweden
Am i correct in that category folders are meant to be used for this?
If so, i propose a way to customise the label and name ot the category folder.

For example, if two dogs are to be connected to a litter as their parents, it would be nice to have the labelname of the category row in the form to be like 'Parents' instead of 'Dogs'(Contentfolder name) and being able to replace the name category with a set name like 'Parent' in this example.

This would make it much more visually appealing.
jifeng
#3 Posted : Monday, August 08, 2011 2:12:48 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
Yes, you are right, the category folders used to do this.

You can set the DisplayName of the folder to change the display label.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
Baseless
#4 Posted : Monday, August 08, 2011 6:30:30 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 6/10/2010(UTC)
Posts: 141
Location: Sweden
jifeng;4616 wrote:
Yes, you are right, the category folders used to do this.

You can set the DisplayName of the folder to change the display label.


That the content foldername is used is kind of the problem. The name of the related content can change depending on the application. Another example:

You want to setup an index of people. So you create a content type named Person. Then you create a content folder named People.

In the form for every person you create you would like a relation to two other persons in the People folder. These are the Persons parents.Therefor you add a categoryfolder in People pointed to itself.

The above will result in a categoryfolder in the form named People. But the name should be Parents, not People. Otherwise the content managers will not understand what its for. And when the content managers click on the 'select' button it will say 'Select category' wich is also confusing. Since they are not selecting categories, they are selecting parents.

This is just an example and functinally it works fine. Its just that not being able to control the presentation labels of category folder will make it hard to present it in a way that users and content managers will understand.
Hrvoje_86
#6 Posted : Saturday, October 29, 2011 10:26:11 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 154
Location: Croatia
Baseless;4604 wrote:

One-to-many relationships i think is nice, i like that the related content is collected in content folders outside the objects thus accessible easily. One thing though that would be great is if the related objects themselves showed wich content objects they are related to.


There are 1 to manny relations in kooboo?
Is that sub content or ?
jifeng
#7 Posted : Monday, October 31, 2011 2:43:07 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
yes, it is sub content relationship.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.108 seconds.