modular_raw.yaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. rules:
  2. slug:
  3. pattern: "[a-z][a-z0-9_\-]+"
  4. min: 2
  5. max: 80
  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. type: frontmatter
  19. label: PLUGIN_ADMIN.FRONTMATTER
  20. content:
  21. type: markdown
  22. label: PLUGIN_ADMIN.CONTENT
  23. uploads:
  24. type: pagemedia
  25. label: PLUGIN_ADMIN.PAGE_MEDIA
  26. options:
  27. type: tab
  28. title: PLUGIN_ADMIN.OPTIONS
  29. fields:
  30. columns:
  31. type: columns
  32. fields:
  33. column1:
  34. type: column
  35. fields:
  36. ordering:
  37. type: toggle
  38. label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
  39. help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
  40. highlight: 1
  41. options:
  42. 1: PLUGIN_ADMIN.ENABLED
  43. 0: PLUGIN_ADMIN.DISABLED
  44. validate:
  45. type: bool
  46. folder:
  47. type: text
  48. label: PLUGIN_ADMIN.FILENAME
  49. validate:
  50. type: slug
  51. required: true
  52. route:
  53. type: select
  54. label: PLUGIN_ADMIN.PARENT
  55. classes: fancy
  56. '@data-options': '\Grav\Common\Page\Pages::parents'
  57. '@data-default': '\Grav\Plugin\admin::route'
  58. options:
  59. '': PLUGIN_ADMIN.DEFAULT_OPTION_SELECT
  60. validate:
  61. required: true
  62. name:
  63. type: select
  64. classes: fancy
  65. label: PLUGIN_ADMIN.MODULAR_TEMPLATE
  66. default: default
  67. '@data-options': '\Grav\Common\Page\Pages::modularTypes'
  68. validate:
  69. required: true
  70. column2:
  71. type: column
  72. fields:
  73. order:
  74. type: order
  75. label: PLUGIN_ADMIN.ORDERING
  76. blueprint:
  77. type: blueprint