Forums / Developer / Creating an extension or datatype or another option

Creating an extension or datatype or another option

Author Message

Kedar Deshpande

Monday 28 September 2009 1:42:56 pm

Hi,

I need to create a re-usable 'attribute' which will display a group of checkboxes with names associated with a particular type of node like say business types. When the user is creating a new store like ABC bank, these checkboxes with the values bank, grocery etc will appear as an attribute on the edit page and once selected will make a relationship between the new store object and the business objects.

The question is, how does one go about creating this reusable component? Is this a extension, datatype or something else?

thanks

Bruce Morrison

Monday 28 September 2009 4:21:11 pm

Hi Kedar

This functionally actually exists in eZ Publish already. Use a object relation list
http://ez.no/doc/ez_publish/technical_manual/4_x/reference/datatypes/object_relations

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Kedar Deshpande

Tuesday 29 September 2009 7:06:32 am

The way I wrote the post made it sound like I was trying to find a way to process the relations once selected which isnt what I meant. Once the options are selected, they can be connected (relations) to the parent node but the issue is having a reusable component that can be added into any template so that it doesnt have to be written from scratch each time and so that it will be rendered correctly on the edit page.

How should this 'component/attribute/whatever' be constructed?

thanks.