Thanks for your insight on this.

I have indeed started developing adequate classes (and then had a 1-month 
vacation)
No major problems so far, it is indeed rather straightforward :)

Regards,
Jonathan

-----Message d'origine-----
De : Florent Guillaume [mailto:[EMAIL PROTECTED] 
Envoyé : dimanche 5 août 2007 18:18
À : Winterflood, Jonathan
Cc : [email protected]
Objet : Re: [CPS-users] Hidden values in a Select Widget

On 27 Jul 2007, at 10:16, Winterflood, Jonathan wrote:
> In a CPSDocument, I need a special behaviour for a Select widget:
>
> The elements in the vocabulary can be deactivated by the admin,  
> such that they cannot be selected anymore, but the documents that  
> already use them should still display the associated labels.
>
> Is there a way to achieve this with the existing Select Widget /  
> CPS Vocabulary?
>
No.
>  I suspect I'll have to extend these classes, any suggestions on  
> how I should go with this?
>
You'd have to add an extra "deactivated" flag to vocabulary entries.  
So you need a new vocabulary class.
Then you need to write a new vocabulary widget that takes those into  
account.
But all this is rather straightforward code.

Florent

-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.

_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to