Hi Paolo,

I'm not really sure what your use case is with the sitemenu, but as I
understand it, validation on it's own level should be sufficient right?

So you can't have 2 items at level X with the same name.

Is that right?

Regards,

Jeroen

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paolo
Mottadelli
Sent: Friday, May 02, 2008 8:47 AM
To: Hippo CMS development public mailinglist
Subject: [HippoCMS-dev] Unique name field value in sitemenu

Hi guys,
can anyone suggest anything about this?

I need the following form validation for a sitemenu document: no
element can have an already used value for the 'name' field.
See the example [1]***.
I was investigating the business_logic javascript validation approach,
but I'm not finding the right way to do that.

Thanks!
Paolo

[1]***************
> (level1)A
>> (level2)B <-- this is not valid! (not unique)
>>>(level3)C
>> (level2)D
>>>(level3)B  <-- this is not valid! (not unique)
******************

-- 
Paolo Mottadelli
Sourcesense - making sense of Open Source: http://www.sourcesense.com
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to