A easy to use add on to define selectable values with numbered key.
Project description
This product provide an easy way in Handling key value pairs which should be shown in for example drop down lists.
First you has to define a key to identify the whole list. For example mycontenttype-mydropdownfield
Than press save.
After you saved, a new link will apear for enter vocabulary valus.
Put every value in a new single line. The entered values will be numbered in ascending order starting by 1.
If you like to rename a value use the rename dropdown below the value list.
If you remove a key from the list, the value will only be hidden in the selection dropdown so the history will be working for older entries.
You an reactivate the entry by putting it again in the value list.
The following example returns a key,value pair list.
context.getBrowser('easyvoc').get('mycontenttype-mydropdownfield')
The following example returns the value for the key
context.getBrowser('easyvoc').get_value('mycontenttype-mydropdownfield',context.mycontenttype-mydropdownfield)
For getting translations running, enter values in you preffered default language an use po files.
The design is based on a bootstrap 2.3.x layout. Bootstrap is not included
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tomcom.plone.easyvoc-4.3.0.5.zip
.
File metadata
- Download URL: tomcom.plone.easyvoc-4.3.0.5.zip
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e118f9d5468b0a6b948fd6262c740eb1900f2b25701e3575b240a3aafc09829a |
|
MD5 | 074240c57312ec59a3a327e64029ce59 |
|
BLAKE2b-256 | 670fb5193b0a34e6415f6873cd7aa0724bfc5203b7d7ef3044f64b1dda3c3e5c |