raw.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. autofocus: true
  21. content:
  22. type: markdown
  23. label: PLUGIN_ADMIN.CONTENT
  24. uploads:
  25. type: pagemedia
  26. label: PLUGIN_ADMIN.PAGE_MEDIA
  27. options:
  28. type: tab
  29. title: PLUGIN_ADMIN.OPTIONS
  30. fields:
  31. columns:
  32. type: columns
  33. fields:
  34. column1:
  35. type: column
  36. fields:
  37. ordering:
  38. type: toggle
  39. label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
  40. help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
  41. highlight: 1
  42. options:
  43. 1: PLUGIN_ADMIN.ENABLED
  44. 0: PLUGIN_ADMIN.DISABLED
  45. validate:
  46. type: bool
  47. folder:
  48. type: text
  49. label: PLUGIN_ADMIN.FOLDER_NAME
  50. help: PLUGIN_ADMIN.FOLDER_NAME_HELP
  51. validate:
  52. type: slug
  53. required: true
  54. route:
  55. type: select
  56. label: PLUGIN_ADMIN.PARENT
  57. classes: fancy
  58. '@data-options': '\Grav\Common\Page\Pages::parents'
  59. '@data-default': '\Grav\Plugin\admin::route'
  60. options:
  61. '/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT
  62. name:
  63. type: select
  64. classes: fancy
  65. label: PLUGIN_ADMIN.DISPLAY_TEMPLATE
  66. help: PLUGIN_ADMIN.DISPLAY_TEMPLATE_HELP
  67. default: default
  68. '@data-options': '\Grav\Common\Page\Pages::types'
  69. validate:
  70. required: true
  71. column2:
  72. type: column
  73. fields:
  74. order:
  75. type: order
  76. label: PLUGIN_ADMIN.ORDERING
  77. blueprint:
  78. type: blueprint