[CPS-devel] Two questions about widgets...

bruno desthuilliers bruno at modulix.org
Tue Feb 14 12:38:20 CET 2006


Hello hi,

Two questions about widgets and layouts and schemas...

1/ I have a member schema with 3 "custom" zones (CPS String fields). I'd
like to use portal properties to set the labels of the corresponding
widgets (String widgets or like), so the portal admin can set whatever
label pleases him. Is there an easy way to do so ? I failed to
understand exactly how a string widget is rendered (didn't found a .pt,
and the render() method of string widget seems to only care about the
content, not the label... or did I miss something ?)

2/ I have what I thought would be a common use case : for a given (CPS
String) field, propose the user a selection list *and* a text input for
values that are not in the list. But I failed to find a widget doing
this. Does such a beast exist ? Or is this problem best solved by using
two widgets (a selection and a string widget) and using write expression
to retrieve the value from the appropriate widget ?

TIA
-- 
bruno desthuilliers
développeur
bruno at modulix.org
http://www.modulix.com


More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.