modular_new.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. section:
  10. type: section
  11. title: PLUGIN_ADMIN.ADD_MODULAR_CONTENT
  12. title:
  13. type: text
  14. label: PLUGIN_ADMIN.PAGE_TITLE
  15. validate:
  16. required: true
  17. folder:
  18. type: text
  19. label: PLUGIN_ADMIN.FOLDER_NAME
  20. validate:
  21. type: slug
  22. required: true
  23. route:
  24. type: select
  25. label: PLUGIN_ADMIN.PAGE
  26. classes: fancy
  27. '@data-options': '\Grav\Common\Page\Pages::parents'
  28. '@data-default': '\Grav\Plugin\admin::route'
  29. options:
  30. '': PLUGIN_ADMIN.DEFAULT_OPTION_SELECT
  31. validate:
  32. required: true
  33. name:
  34. type: select
  35. classes: fancy
  36. label: PLUGIN_ADMIN.MODULAR_TEMPLATE
  37. help: PLUGIN_ADMIN.PAGE_FILE_HELP
  38. default: default
  39. '@data-options': '\Grav\Common\Page\Pages::modularTypes'
  40. validate:
  41. required: true
  42. modular:
  43. type: hidden
  44. default: 1
  45. validate:
  46. type: bool
  47. blueprint:
  48. type: blueprint