How to fill the The 'select' field type ?

Steven HeynderickxSteven Heynderickx wrote on 05 Jan 2010 09:14

If this is the structure of a select field type

[[form]]
fields:
  your-mood:
    label: Your mood
    type: select
    values:
      1: manic
      2: happy
      3: calm
      4: down
      5: depressed
[[/form]]

It would be useful to pull these values (both the internal 'key' and the external 'label' from wiki pages in a category). In a minimum case, we'd use all pages in a category. In a more sophisticated case (but this is probably overkill right now) we'd want selection and ordering mechanisms similar to that used in ListPages.


Start a new sub-thread

Comments: 15

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License