Contact widget
Project description
=========================
collective.contact.widget
=========================
You can add a contact field to your schema, like this ::
class IMyProject(Interface):
manager = ContactChoice(
title=_(u"Project Manager"),
source=ContactSourceBinder(portal_type=("held_position",),
relations={'position': '/contacts/ecreall'}),
)
Example code means that 'manager' is a multivalued contact field wich vocabulary
get held_position of site restricted to ones wich have a 'position' relation to '/contacts/ecreall'
(i.e. wich are held_positions in ecreall company).
portal_type is required as source attribute, and relations is not.
Contributors
============
- Vincent Fretin, vincentfretin@ecreall.com
- Cédric Messiant
- Stéphane Geulette
- Frédéric Péters
- Thomas Desvenain, thomas.desvenain@gmail.com
Changelog
=========
1.2 (2014-06-02)
----------------
- We can give as source param a 'relations' value to filter on contents
related to an other content.
[thomasdesvenain]
1.1 (2014-03-11)
----------------
- Don't include closeOnClick: true in javascript, so it defaults to
global configuration.
[vincentfretin]
- UI improvements :
- Add contact link is displayed after user has filled a search.
- We have and explicit help message next to contact link.
- Contact creation form title is pre-filled with user search.
- The search input has a placeholder.
[thomasdesvenain]
- Execute prepOverlay only if it hasn't been done yet, this avoid to have a
pbo undefined error when you have recursive overlays.
[vincentfretin]
- The jqueryui autocomplete plugin conflicts with the jquery autocomplete
plugin used by plone.formwidget.autocomplete, disable the jqueryui one.
[cedricmessiant]
- Do not break dexterity content type when we don't have a REQUEST
(in async context).
[thomasdesvenain]
- We can add contact and contact list fields TTW on dexterity content types.
[thomasdesvenain]
1.0 (2013-09-18)
----------------
- Check do_post_sort attribute on source to be able to disable the sorting.
- Declare dependencies on z3c.relationfield and plone.formwidget.contenttree.
- Remove ploneform-render-widget view for content provider, this is now
in plone.app.z3cform since 0.7.3.
1.0rc1 (2013-03-27)
-------------------
- Added hidden and rtf mode templates.
[vincentfretin]
- Don't open tooltip in tooltip.
[vincentfretin]
0.12 (2013-03-12)
-----------------
- Decode title, returning unicode, to standardize term attributes
[sgeulette]
0.11 (2013-03-11)
-----------------
- Fixed UnicodeDecodeError in @@autocomplete-search
[vincentfretin]
- Internationalized two messages.
[vincentfretin]
- Don't show tooltip if the mouse left the link.
[vincentfretin]
- Don't call tokenToUrl if value is --NOVALUE--.
[vincentfretin]
0.10 (2013-03-07)
-----------------
- Nothing changed yet.
0.9 (2013-03-07)
----------------
- Initial release.
[vincentfretin]
collective.contact.widget
=========================
You can add a contact field to your schema, like this ::
class IMyProject(Interface):
manager = ContactChoice(
title=_(u"Project Manager"),
source=ContactSourceBinder(portal_type=("held_position",),
relations={'position': '/contacts/ecreall'}),
)
Example code means that 'manager' is a multivalued contact field wich vocabulary
get held_position of site restricted to ones wich have a 'position' relation to '/contacts/ecreall'
(i.e. wich are held_positions in ecreall company).
portal_type is required as source attribute, and relations is not.
Contributors
============
- Vincent Fretin, vincentfretin@ecreall.com
- Cédric Messiant
- Stéphane Geulette
- Frédéric Péters
- Thomas Desvenain, thomas.desvenain@gmail.com
Changelog
=========
1.2 (2014-06-02)
----------------
- We can give as source param a 'relations' value to filter on contents
related to an other content.
[thomasdesvenain]
1.1 (2014-03-11)
----------------
- Don't include closeOnClick: true in javascript, so it defaults to
global configuration.
[vincentfretin]
- UI improvements :
- Add contact link is displayed after user has filled a search.
- We have and explicit help message next to contact link.
- Contact creation form title is pre-filled with user search.
- The search input has a placeholder.
[thomasdesvenain]
- Execute prepOverlay only if it hasn't been done yet, this avoid to have a
pbo undefined error when you have recursive overlays.
[vincentfretin]
- The jqueryui autocomplete plugin conflicts with the jquery autocomplete
plugin used by plone.formwidget.autocomplete, disable the jqueryui one.
[cedricmessiant]
- Do not break dexterity content type when we don't have a REQUEST
(in async context).
[thomasdesvenain]
- We can add contact and contact list fields TTW on dexterity content types.
[thomasdesvenain]
1.0 (2013-09-18)
----------------
- Check do_post_sort attribute on source to be able to disable the sorting.
- Declare dependencies on z3c.relationfield and plone.formwidget.contenttree.
- Remove ploneform-render-widget view for content provider, this is now
in plone.app.z3cform since 0.7.3.
1.0rc1 (2013-03-27)
-------------------
- Added hidden and rtf mode templates.
[vincentfretin]
- Don't open tooltip in tooltip.
[vincentfretin]
0.12 (2013-03-12)
-----------------
- Decode title, returning unicode, to standardize term attributes
[sgeulette]
0.11 (2013-03-11)
-----------------
- Fixed UnicodeDecodeError in @@autocomplete-search
[vincentfretin]
- Internationalized two messages.
[vincentfretin]
- Don't show tooltip if the mouse left the link.
[vincentfretin]
- Don't call tokenToUrl if value is --NOVALUE--.
[vincentfretin]
0.10 (2013-03-07)
-----------------
- Nothing changed yet.
0.9 (2013-03-07)
----------------
- Initial release.
[vincentfretin]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
collective.contact.widget-1.2.zip
(40.5 kB
view hashes)
Close
Hashes for collective.contact.widget-1.2.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c52c8718734b3241f0e036f0d9ba20f581f3fe137a4f337e92c255627a565f0 |
|
MD5 | 49e2ba4108bb729080b9a3d75c48494e |
|
BLAKE2b-256 | 981f709f5649675ac35becab39841351f230bdb20d587ff2be6f0696fd2e2c26 |