Skip to content

Instantly share code, notes, and snippets.

@petri
Created September 2, 2015 09:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petri/ea78a064d74286d71d5f to your computer and use it in GitHub Desktop.
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
<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