Last active
          November 10, 2015 19:01 
        
      - 
      
- 
        Save rossriley/da5a932841286d5f23bb to your computer and use it in GitHub Desktop. 
    Repeating Fields Config
  
        
  
    
      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
    
  
  
    
  | # Add to bottom of fields within showcases | |
| repeat: | |
| type: repeater | |
| group: repeats | |
| limit: 3 | |
| prefix: "<p>This allows you to create multiple sets of fields. Use the add button at the bottom to create a new empty set.</p>" | |
| postfix: "<p>This is a postfix</p>" | |
| fields: | |
| reptitle: | |
| type: text | |
| class: large | |
| required: true | |
| pattern: ".{2,255}" # see: http://html5pattern.com/ | |
| error: "The Title field is required, and must contain at least 2 characters" | |
| group: Text | |
| rephtml: | |
| type: html | |
| height: 150px | |
| reptextarea: | |
| type: textarea | |
| postfix: "<p><em>This is a plain text area. the contents will not be processed.</em></p>" | |
| repmarkdown: | |
| type: markdown | |
| postfix: "<p><em>This field gets parsed as <a href='https://help.github.com/articles/markdown-basics'>Markdown</a>, when rendered on the site.</em></p>" | |
| repgeolocation: | |
| type: geolocation | |
| group: Media | |
| repvideo: | |
| type: video | |
| repimage: | |
| type: image | |
| attrib: title # Note: retrieve this in your template with {{ record.values.image.title }} | |
| extensions: [ gif, jpg, png ] | |
| repimagelist: | |
| type: imagelist | |
| repfile: | |
| type: file | |
| group: files | |
| repfilelist: | |
| type: filelist | |
| repcheckbox: | |
| type: checkbox | |
| label: "This is a checkbox" | |
| group: other | |
| repdatetime: | |
| type: datetime | |
| default: "2000-01-01" | |
| variant: inline | |
| repdate: | |
| type: date | |
| default: "first day of last month" | |
| variant: inline | |
| repintegerfield: | |
| type: integer | |
| index: true | |
| repfloatfield: | |
| type: float | |
| repselectfield: | |
| type: select | |
| values: [ foo, bar, baz ] | |
| repmultiselect: | |
| type: select | |
| values: [ A-tuin, Donatello, Rafael, Leonardo, Michelangelo, Koopa, Squirtle ] | |
| multiple: true | |
| postfix: "Select your favourite turtle(s)." | |
| repselectentry: | |
| type: select | |
| values: entries/id,title | |
| postfix: "Select an entry" | |
| autocomplete: true | |
| sort: title | |
| reptemplate: | |
| type: templateselect | |
| filter: '*.twig' | |
| group: meta | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment