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 » eZ Publish 5 Platform » Object relations with additional data
expandshrink

Object relations with additional data

Object relations with additional data

Tuesday 10 March 2015 9:58:27 am - 3 replies

I have a class that has relations to another type via 'Object relations'.

I would like to decorate this relation with additional data. Can not do this in the target object as this additional information would need to be maintained per relation.

Such as like adding an extra field in a mapping table.

E.g. 'Article' links to a number of Persons and each Person will need to have a 'quote' specific to that Article.

Any idea how to go about achieving something like this?

Tuesday 10 March 2015 6:28:18 pm

Mugo Web has a legacy stack datatype that does this:

http://www.mugo.ca/Blog/Adding-cross-reference-data-to-object-relations

The new stack portion has not yet been written.

Saturday 14 March 2015 10:13:53 am

Hello,

I know that all2e in Germany has written exactly that, but unfortunately, they haven't opensourced it. Maybe they just need to be encouraged blunk.gif Emoticon

That aside, one thing you could do is use a relation object: Article <-> Quote <-> User

It makes input more complicated, but this could be resolved by customizing the editing interface.

What version do you want to do this with ?

Tuesday 21 April 2015 9:25:02 am

Thanks Bertrand for the option, but I think we will go for a custom implementation with a better back-office experience. (We will also ping all2e obviously,)

If we implement our own, we will discuss internally whether we can open source it.

Our current version is 5.3.4 EE. We are however on the verge of upgrading to 5.4.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from