Unique attributes

Author Message

Michael Scofield

Tuesday 17 June 2008 1:49:08 am

I would suggest that each attribute should have a checkbox option called "Unique", while editing or creating a class.

It could be used in forms with user registration, where, for example, the intention is to have unique e-mails between users. Because the attribute e-mail is unique, ez Publish will not permit two users with same e-mail addresses to register.

This unique feature for attributes could be used in many other situations.

Piotrek Karaś

Monday 23 June 2008 6:10:18 pm

Actually, eZ Publish by default does not allow registration of multiple accounts using one e-mail address. But also, this is a special type of security, which is embedded in the datatype itself.

I've once commited an extension that sort of does of what you're asking for:
http://ez.no/developer/contribs/datatypes/ez_unique_datatypes

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Robert Rö[email protected]

Monday 11 July 2011 5:10:13 am

hey,

would be nice if someone could take such a checkbox into the feature request for eZ 4.7 or so :D

ps. your extension works fine.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.