This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Is there a datatype for "Link to...
expandshrink

Is there a datatype for "Link to Other Object"?

Is there a datatype for "Link to Other Object"?

Monday 12 May 2003 9:25:22 pm - 3 replies

As I understand it, each attribute on a content class is typed with a datatype e.g. String, xmlText, etc.

Is there a datatype for "Link to another content object"?
Is there a data type for "Set of links to other content objects"?

Is is possible for me to figure out the answers to these myself without looking at the source code?

I would like to have something like
class B
some attributes of B
end

class A
name: String
good_bs: Set of Bs
bad_bs: Set of Bs
end

I believe "Related Objects" will allow me to group some related Bs into each A_object. However, I do not believe it will allow me to distinguish the good_bs from the bad_bs for a given A_object.

Thanks.

Tuesday 13 May 2003 11:13:11 am

There is a object relation, but this works for one relation at a time.

For this and other attribute types (like URL) it would be logical to have the option to specify multiple items (like the general related objects do).

Paul

Tuesday 13 May 2003 5:28:40 pm

Thanks Paul.

Where can I learn more about "object relation"? I tried to google-search the site ez.no and did not have much luck.

Do I understand you correctly that (a) I can currently do:
class A
the_best_B: B
end

but cannot do:
class A
all_good_bs: Set of Bs
end

Saturday 24 May 2003 9:34:51 am

class A
name: String
good_bs: Set of Bs
bad_bs: Set of Bs
end

To achive the above couldn't you make another attribute in Class B named "rating" and give enumerated values like "Good", "Bad" and "Best".

Now you are anyways getting list of B's . But with this attribute you can also distiguish between those B's i.e. they are good or bad or best.

I dont know why this idea didn't struct you all ? Or am i completly wrong?

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from