raw.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. xss_check:
  18. type: xss
  19. frontmatter:
  20. classes: frontmatter
  21. type: editor
  22. label: PLUGIN_ADMIN.FRONTMATTER
  23. autofocus: true
  24. codemirror:
  25. mode: 'yaml'
  26. indentUnit: 4
  27. autofocus: true
  28. indentWithTabs: false
  29. lineNumbers: true
  30. styleActiveLine: true
  31. gutters: ['CodeMirror-lint-markers']
  32. lint: true
  33. content:
  34. type: markdown
  35. header.media_order:
  36. type: pagemedia
  37. label: PLUGIN_ADMIN.PAGE_MEDIA
  38. options:
  39. type: tab
  40. title: PLUGIN_ADMIN.OPTIONS
  41. fields:
  42. columns:
  43. type: columns
  44. fields:
  45. column1:
  46. type: column
  47. fields:
  48. ordering:
  49. type: toggle
  50. label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
  51. help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
  52. highlight: 1
  53. options:
  54. 1: PLUGIN_ADMIN.ENABLED
  55. 0: PLUGIN_ADMIN.DISABLED
  56. validate:
  57. type: bool
  58. folder:
  59. type: text
  60. label: PLUGIN_ADMIN.FOLDER_NAME
  61. help: PLUGIN_ADMIN.FOLDER_NAME_HELP
  62. validate:
  63. rule: slug
  64. required: true
  65. route:
  66. type: parents
  67. label: PLUGIN_ADMIN.PARENT
  68. classes: fancy
  69. validate:
  70. required: true
  71. name:
  72. type: select
  73. classes: fancy
  74. label: PLUGIN_ADMIN.DISPLAY_TEMPLATE
  75. help: PLUGIN_ADMIN.DISPLAY_TEMPLATE_HELP
  76. default: default
  77. data-options@: '\Grav\Plugin\AdminPlugin::pagesTypes'
  78. validate:
  79. required: true
  80. column2:
  81. type: column
  82. fields:
  83. order:
  84. type: order
  85. label: PLUGIN_ADMIN.ORDERING
  86. blueprint:
  87. type: blueprint