Forums / Developer / Storing value for the Keywords datatype (PHP)
Felix Laate
Tuesday 02 March 2010 2:15:04 am
Hi all!
I'm trying to store values for an attribute of type Keywords. I have this code:
case 'tags': $newObjectAttributes[$i]->setAttribute('keywords', $newObjTags ); $newObjectAttributes[$i]->store(); break;
but it' not working. Any advice would make my brand new module a bit closer to be published at projects.ez.no :-)
Felix
Publlic Relations Manager Greater Stavanger www.greaterstavanger.com
Nicolas Pastorino
Tuesday 02 March 2010 3:14:02 am
Hi Felix,
Fair blackmailing :)
Why wouldn't you go for something like this :
case 'tags': $newObjectAttributes[$i]->fromString( $newObjTags ); $newObjectAttributes[$i]->store(); break;
?
Let us know,Cheers!
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye
Tuesday 02 March 2010 3:30:18 am
Thanks Nico, that did the trick!