Created
September 2, 2015 09:34
-
-
Save petri/ea78a064d74286d71d5f to your computer and use it in GitHub Desktop.
Define a Choice field for Plone portal registry, with a vocabulary to choose from and a default value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<registry> | |
<record name="some.record.identifier"> | |
<field type="plone.registry.field.Choice"> | |
<title>TheTitle</title> | |
<description>TheDescription</description> | |
<value_type type="plone.registry.field.TextLine" /> | |
<values purge="true"> | |
<element>choice 1</element> | |
<element>choice 2</element> | |
<element>choice 3</element> | |
</values> | |
</field> | |
<value>choice 1</value> | |
</record> | |
</registry> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment