Referenceable dexterity type behavior
Project description
Introduction
The “IReferenceable” behavior is used for enabling UUID (plone.app.uuid) support for dexterity contents, like in archetypes content types. This allow for example references between archetypes and dexterity content types.
Note: It can’t work with Plone==4.0 because it is based on plone.uuid integration in CMF. It is compatible with Plone>=4.1
Usage
Just use the behavior “plone.app.referenceablebehavior.referenceable.IReferenceable” in your dexterity content type.
In your profiles/default/types/YOURTYPE.xml add the behavior:
<?xml version="1.0"?> <object name="example.conference.presenter" meta_type="Dexterity FTI" i18n:domain="example.conference" xmlns:i18n="http://xml.zope.org/namespaces/i18n"> <!-- enabled behaviors --> <property name="behaviors"> <element value="plone.app.referenceablebehavior.referenceable.IReferenceable" /> </property> </object>
Changelog
0.2 (2011-04-30)
Use getSite() hook in event handlers, since the object may be not acquisition-wrapped in certain circumstances. [jbaumann]
Fix broken IReferenceable import. [daftdog]
0.1 (2011-02-11)
Add “locales” directory and french translation for the behavior. [sylvainb]
Add referenceable behavior to dexterity [toutpt]
Initial release [sylvainb]
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
Hashes for plone.app.referenceablebehavior-0.2.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | da2e397ec32e2ebfaf2dc4578316c31ae70e53f18a3abbb57557b6ac55eb9ea1 |
|
MD5 | a8b686b994bf5a0679b2c62f3198d26f |
|
BLAKE2b-256 | 1ac7277784c6ba6260763421698acd4b91ae2359a1f91c1b7d6cd8b4c89d1dc1 |