Forums / Developer / How to store datatype ezselection
Norman Leutner
Monday 14 November 2005 1:40:44 pm
Hi, I'm trying to store a attribute in my extension with datatype ezselection:
$contentObjectAttribute->SetAttribute( 'data_int', $data ); $contentObjectAttribute->store();
Can anyone tell me how this datatype is stored correctly? Or where I can find a example within ez?
Thanks in advance
Mit freundlichen Grüßen Best regards Norman Leutner ____________________________________________________________ eZ Publish Platinum Partner - http://www.all2e.com http://ez.no/partners/worldwide_partners/all2e_gmbh
Bruce Morrison
Monday 14 November 2005 3:14:26 pm
Hi Norman
The best place to look for this is in the datatype code:
http://pubsvn.ez.no/nextgen/trunk/kernel/classes/datatypes/ezselection/ezselectiontype.php
HTH
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
Kristof Coomans
Wednesday 16 November 2005 12:24:12 am
The numbers of the selected options are stored in data_text, each seperated by -.
A related post is http://ez.no/community/forum/setup_design/filter_content_passing_values_from_url
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Wednesday 16 November 2005 7:52:31 am
Thanks for your support...