modular_raw.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. rules:
  2. slug:
  3. pattern: '[a-zA-Zа-яA-Я0-9_\-]+'
  4. min: 1
  5. max: 200
  6. form:
  7. validation: loose
  8. fields:
  9. tabs:
  10. type: tabs
  11. active: 1
  12. fields:
  13. content:
  14. type: tab
  15. title: PLUGIN_ADMIN.CONTENT
  16. fields:
  17. frontmatter:
  18. classes: frontmatter
  19. type: editor
  20. label: PLUGIN_ADMIN.FRONTMATTER
  21. autofocus: true
  22. codemirror:
  23. mode: 'yaml'
  24. indentUnit: 4
  25. autofocus: true
  26. indentWithTabs: false
  27. lineNumbers: true
  28. styleActiveLine: true
  29. gutters: ['CodeMirror-lint-markers']
  30. lint: true
  31. content:
  32. type: markdown
  33. header.media_order:
  34. type: pagemedia
  35. label: PLUGIN_ADMIN.PAGE_MEDIA
  36. options:
  37. type: tab
  38. title: PLUGIN_ADMIN.OPTIONS
  39. fields:
  40. columns:
  41. type: columns
  42. fields:
  43. column1:
  44. type: column
  45. fields:
  46. ordering:
  47. type: toggle
  48. label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
  49. help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
  50. highlight: 1
  51. options:
  52. 1: PLUGIN_ADMIN.ENABLED
  53. 0: PLUGIN_ADMIN.DISABLED
  54. validate:
  55. type: bool
  56. folder:
  57. type: text
  58. label: PLUGIN_ADMIN.FILENAME
  59. validate:
  60. rule: slug
  61. required: true
  62. route:
  63. type: parents
  64. label: PLUGIN_ADMIN.PARENT
  65. classes: fancy
  66. validate:
  67. required: true
  68. name:
  69. type: select
  70. classes: fancy
  71. label: PLUGIN_ADMIN.MODULAR_TEMPLATE
  72. default: default
  73. data-options@: '\Grav\Plugin\AdminPlugin::pagesModularTypes'
  74. validate:
  75. required: true
  76. column2:
  77. type: column
  78. fields:
  79. order:
  80. type: order
  81. label: PLUGIN_ADMIN.ORDERING
  82. blueprint:
  83. type: blueprint