default.yaml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. title: PLUGIN_ADMIN.DEFAULT
  2. rules:
  3. slug:
  4. pattern: "[a-z][a-z0-9_\-]+"
  5. min: 2
  6. max: 80
  7. form:
  8. validation: loose
  9. fields:
  10. tabs:
  11. type: tabs
  12. active: 1
  13. fields:
  14. content:
  15. type: tab
  16. title: PLUGIN_ADMIN.CONTENT
  17. fields:
  18. header.title:
  19. type: text
  20. autofocus: true
  21. style: vertical
  22. label: PLUGIN_ADMIN.TITLE
  23. content:
  24. type: markdown
  25. label: PLUGIN_ADMIN.CONTENT
  26. validate:
  27. type: textarea
  28. uploads:
  29. type: pagemedia
  30. label: PLUGIN_ADMIN.PAGE_MEDIA
  31. options:
  32. type: tab
  33. title: PLUGIN_ADMIN.OPTIONS
  34. fields:
  35. publishing:
  36. type: section
  37. title: Publishing
  38. underline: true
  39. fields:
  40. header.published:
  41. type: toggle
  42. toggleable: true
  43. label: PLUGIN_ADMIN.PUBLISHED
  44. help: PLUGIN_ADMIN.PUBLISHED_HELP
  45. highlight: 1
  46. size: medium
  47. options:
  48. 1: PLUGIN_ADMIN.YES
  49. 0: PLUGIN_ADMIN.NO
  50. validate:
  51. type: bool
  52. header.date:
  53. type: datetime
  54. label: PLUGIN_ADMIN.DATE
  55. toggleable: true
  56. help: PLUGIN_ADMIN.DATE_HELP
  57. header.publish_date:
  58. type: datetime
  59. label: PLUGIN_ADMIN.PUBLISHED_DATE
  60. toggleable: true
  61. help: PLUGIN_ADMIN.PUBLISHED_DATE_HELP
  62. header.unpublish_date:
  63. type: datetime
  64. label: PLUGIN_ADMIN.UNPUBLISHED_DATE
  65. toggleable: true
  66. help: PLUGIN_ADMIN.UNPUBLISHED_DATE_HELP
  67. header.metadata:
  68. toggleable: true
  69. type: array
  70. label: PLUGIN_ADMIN.METADATA
  71. help: PLUGIN_ADMIN.METADATA_HELP
  72. placeholder_key: PLUGIN_ADMIN.METADATA_KEY
  73. placeholder_value: PLUGIN_ADMIN.METADATA_VALUE
  74. taxonomies:
  75. type: section
  76. title: PLUGIN_ADMIN.TAXONOMIES
  77. underline: true
  78. fields:
  79. header.taxonomy:
  80. type: taxonomy
  81. label: PLUGIN_ADMIN.TAXONOMY
  82. multiple: true
  83. validate:
  84. type: array
  85. advanced:
  86. type: tab
  87. title: PLUGIN_ADMIN.ADVANCED
  88. fields:
  89. columns:
  90. type: columns
  91. fields:
  92. column1:
  93. type: column
  94. fields:
  95. settings:
  96. type: section
  97. title: PLUGIN_ADMIN.SETTINGS
  98. underline: true
  99. ordering:
  100. type: toggle
  101. label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
  102. help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
  103. highlight: 1
  104. options:
  105. 1: PLUGIN_ADMIN.ENABLED
  106. 0: PLUGIN_ADMIN.DISABLED
  107. validate:
  108. type: bool
  109. folder:
  110. type: text
  111. label: PLUGIN_ADMIN.FOLDER_NAME
  112. validate:
  113. type: slug
  114. route:
  115. type: select
  116. label: PLUGIN_ADMIN.PARENT
  117. classes: fancy
  118. '@data-options': '\Grav\Common\Page\Pages::parents'
  119. '@data-default': '\Grav\Plugin\admin::route'
  120. options:
  121. '/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT
  122. name:
  123. type: select
  124. classes: fancy
  125. label: PLUGIN_ADMIN.PAGE_FILE
  126. help: PLUGIN_ADMIN.PAGE_FILE_HELP
  127. default: default
  128. '@data-options': '\Grav\Common\Page\Pages::pageTypes'
  129. header.body_classes:
  130. type: text
  131. label: PLUGIN_ADMIN.BODY_CLASSES
  132. column2:
  133. type: column
  134. fields:
  135. order_title:
  136. type: section
  137. title: PLUGIN_ADMIN.ORDERING
  138. underline: true
  139. order:
  140. type: order
  141. label: PLUGIN_ADMIN.PAGE_ORDER
  142. sitemap:
  143. overrides:
  144. type: section
  145. title: PLUGIN_ADMIN.OVERRIDES
  146. underline: true
  147. fields:
  148. header.menu:
  149. type: text
  150. label: PLUGIN_ADMIN.MENU
  151. toggleable: true
  152. help: PLUGIN_ADMIN.MENU_HELP
  153. header.slug:
  154. type: text
  155. label: PLUGIN_ADMIN.SLUG
  156. toggleable: true
  157. help: PLUGIN_ADMIN.SLUG_HELP
  158. validate:
  159. message: PLUGIN_ADMIN.SLUG_VALIDATE_MESSAGE
  160. rule: slug
  161. header.redirect:
  162. type: text
  163. label: PLUGIN_ADMIN.REDIRECT
  164. toggleable: true
  165. help: PLUGIN_ADMIN.REDIRECT_HELP
  166. header.process:
  167. type: checkboxes
  168. label: PLUGIN_ADMIN.PROCESS
  169. toggleable: true
  170. '@config-default': system.pages.process
  171. default:
  172. markdown: true
  173. twig: false
  174. options:
  175. markdown: Markdown
  176. twig: Twig
  177. use: keys
  178. header.child_type:
  179. type: select
  180. toggleable: true
  181. label: PLUGIN_ADMIN.DEFAULT_CHILD_TYPE
  182. default: default
  183. placeholder: PLUGIN_ADMIN.USE_GLOBAL
  184. '@data-options': '\Grav\Common\Page\Pages::types'
  185. header.routable:
  186. type: toggle
  187. toggleable: true
  188. label: PLUGIN_ADMIN.ROUTABLE
  189. help: PLUGIN_ADMIN.ROUTABLE_HELP
  190. highlight: 1
  191. options:
  192. 1: PLUGIN_ADMIN.ENABLED
  193. 0: PLUGIN_ADMIN.DISABLED
  194. validate:
  195. type: bool
  196. header.cache_enable:
  197. type: toggle
  198. toggleable: true
  199. label: PLUGIN_ADMIN.CACHING
  200. highlight: 1
  201. options:
  202. 1: PLUGIN_ADMIN.ENABLED
  203. 0: PLUGIN_ADMIN.DISABLED
  204. validate:
  205. type: bool
  206. header.visible:
  207. type: toggle
  208. toggleable: true
  209. label: PLUGIN_ADMIN.VISIBLE
  210. help: PLUGIN_ADMIN.VISIBLE_HELP
  211. highlight: 1
  212. options:
  213. 1: PLUGIN_ADMIN.ENABLED
  214. 0: PLUGIN_ADMIN.DISABLED
  215. validate:
  216. type: bool
  217. header.template:
  218. type: select
  219. toggleable: true
  220. classes: fancy
  221. label: PLUGIN_ADMIN.DISPLAY_TEMPLATE
  222. default: default
  223. '@data-options': '\Grav\Common\Page\Pages::types'
  224. header.order_by:
  225. type: hidden
  226. header.order_manual:
  227. type: hidden
  228. validate:
  229. type: commalist
  230. blueprint:
  231. type: blueprint