Forums / Setup & design / object relation: only allow to fetch images

object relation: only allow to fetch images

Author Message

Georg Franz

Friday 11 May 2007 3:25:41 am

Hi,

I've added a object relation and a object relation list datatype to a class. Is there (an easy) way only allow images to be fetched as relation?

(setting browse.ini? or a template override?)

Thanx in advance!

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Bruce Morrison

Friday 11 May 2007 3:59:45 am

Hi Georg

What version are you using? The Object relations datatype has allowed for this since at least 3.8: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/datatypes/object_relations

It doesn't appear to be avialiable for an object relation datatype. You could override the edit template for a specific attribute to only give a list of objects of a particular class for the user to choose from.

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