HI,
sorry for my english.
Ok, for a project, I needed to have a unique component on an object (login) in pimcore you can set indexed but not unique property on a component, so I made a small plugin that adds a new component type "input unique".
Just unzip and place the DataComponentUniqueInput folder in your plugins folder, then install from extras=>extensions=>Manage extensions.
Tested on Pimcore 1.4.1 (Build: 1200)
P.S.: There's just a fix to do when you copy an object.
Hope this can help.
Comments (2)
Sep 06, 2011
Alexandre Delattre says:
Thanks for your sharing. It work fineThanks for your sharing.
It work fine
Sep 07, 2011
Alexandre Delattre says:
Only one problem... But you can't do anything, you can't use the Object_Myobjec...Only one problem...
But you can't do anything, you can't use the Object_Myobject::getByTheuniqueinput("");
Because pimcore not allow it...
this is the error message :
Fatal error: Uncaught exception 'Exception' with message 'Static getter '::getByNom' is not allowed for fieldtype 'uniqueInput', it's only allowed for the following fieldtypes: input,numeric,checkbox,country,date,datetime,image,language,multihref,multiselect,select,slider,time,user' in C:\wamp\www\miss\pimcore\models\Object\Concrete.php on line 586