default.yaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. title: PLUGIN_ADMIN.DEFAULT
  2. rules:
  3. slug:
  4. pattern: '[a-zA-Zа-яA-Я0-9_\-]+'
  5. min: 1
  6. max: 200
  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. validate:
  26. type: textarea
  27. header.media_order:
  28. type: pagemedia
  29. label: PLUGIN_ADMIN.PAGE_MEDIA
  30. options:
  31. type: tab
  32. title: PLUGIN_ADMIN.OPTIONS
  33. fields:
  34. publishing:
  35. type: section
  36. title: PLUGIN_ADMIN.PUBLISHING
  37. underline: true
  38. fields:
  39. header.published:
  40. type: toggle
  41. toggleable: true
  42. label: PLUGIN_ADMIN.PUBLISHED
  43. help: PLUGIN_ADMIN.PUBLISHED_HELP
  44. highlight: 1
  45. size: medium
  46. options:
  47. 1: PLUGIN_ADMIN.YES
  48. 0: PLUGIN_ADMIN.NO
  49. validate:
  50. type: bool
  51. header.date:
  52. type: datetime
  53. label: PLUGIN_ADMIN.DATE
  54. toggleable: true
  55. help: PLUGIN_ADMIN.DATE_HELP
  56. header.publish_date:
  57. type: datetime
  58. label: PLUGIN_ADMIN.PUBLISHED_DATE
  59. toggleable: true
  60. help: PLUGIN_ADMIN.PUBLISHED_DATE_HELP
  61. header.unpublish_date:
  62. type: datetime
  63. label: PLUGIN_ADMIN.UNPUBLISHED_DATE
  64. toggleable: true
  65. help: PLUGIN_ADMIN.UNPUBLISHED_DATE_HELP
  66. header.metadata:
  67. toggleable: true
  68. type: array
  69. label: PLUGIN_ADMIN.METADATA
  70. help: PLUGIN_ADMIN.METADATA_HELP
  71. placeholder_key: PLUGIN_ADMIN.METADATA_KEY
  72. placeholder_value: PLUGIN_ADMIN.METADATA_VALUE
  73. taxonomies:
  74. type: section
  75. title: PLUGIN_ADMIN.TAXONOMIES
  76. underline: true
  77. fields:
  78. header.taxonomy:
  79. type: taxonomy
  80. label: PLUGIN_ADMIN.TAXONOMY
  81. multiple: true
  82. validate:
  83. type: array
  84. advanced:
  85. type: tab
  86. title: PLUGIN_ADMIN.ADVANCED
  87. fields:
  88. columns:
  89. type: columns
  90. fields:
  91. column1:
  92. type: column
  93. fields:
  94. settings:
  95. type: section
  96. title: PLUGIN_ADMIN.SETTINGS
  97. underline: true
  98. folder:
  99. type: text
  100. label: PLUGIN_ADMIN.FOLDER_NAME
  101. validate:
  102. rule: slug
  103. route:
  104. type: parents
  105. label: PLUGIN_ADMIN.PARENT
  106. classes: fancy
  107. name:
  108. type: select
  109. classes: fancy
  110. label: PLUGIN_ADMIN.PAGE_FILE
  111. help: PLUGIN_ADMIN.PAGE_FILE_HELP
  112. default: default
  113. data-options@: '\Grav\Common\Page\Pages::pageTypes'
  114. header.body_classes:
  115. type: text
  116. label: PLUGIN_ADMIN.BODY_CLASSES
  117. column2:
  118. type: column
  119. fields:
  120. order_title:
  121. type: section
  122. title: PLUGIN_ADMIN.ORDERING
  123. underline: true
  124. ordering:
  125. type: toggle
  126. label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX
  127. help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP
  128. highlight: 1
  129. options:
  130. 1: PLUGIN_ADMIN.ENABLED
  131. 0: PLUGIN_ADMIN.DISABLED
  132. validate:
  133. type: bool
  134. order:
  135. type: order
  136. label: PLUGIN_ADMIN.SORTABLE_PAGES
  137. sitemap:
  138. overrides:
  139. type: section
  140. title: PLUGIN_ADMIN.OVERRIDES
  141. underline: true
  142. fields:
  143. header.dateformat:
  144. toggleable: true
  145. type: select
  146. size: medium
  147. selectize:
  148. create: true
  149. label: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT
  150. help: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_HELP
  151. placeholder: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_PLACEHOLDER
  152. data-options@: '\Grav\Common\Utils::dateFormats'
  153. validate:
  154. type: string
  155. header.menu:
  156. type: text
  157. label: PLUGIN_ADMIN.MENU
  158. toggleable: true
  159. help: PLUGIN_ADMIN.MENU_HELP
  160. header.slug:
  161. type: text
  162. label: PLUGIN_ADMIN.SLUG
  163. toggleable: true
  164. help: PLUGIN_ADMIN.SLUG_HELP
  165. validate:
  166. message: PLUGIN_ADMIN.SLUG_VALIDATE_MESSAGE
  167. rule: slug
  168. header.redirect:
  169. type: text
  170. label: PLUGIN_ADMIN.REDIRECT
  171. toggleable: true
  172. help: PLUGIN_ADMIN.REDIRECT_HELP
  173. header.process:
  174. type: checkboxes
  175. label: PLUGIN_ADMIN.PROCESS
  176. toggleable: true
  177. config-default@: system.pages.process
  178. default:
  179. markdown: true
  180. twig: false
  181. options:
  182. markdown: Markdown
  183. twig: Twig
  184. use: keys
  185. header.twig_first:
  186. type: toggle
  187. toggleable: true
  188. label: PLUGIN_ADMIN.TWIG_FIRST
  189. help: PLUGIN_ADMIN.TWIG_FIRST_HELP
  190. highlight: 0
  191. options:
  192. 1: PLUGIN_ADMIN.YES
  193. 0: PLUGIN_ADMIN.NO
  194. validate:
  195. type: bool
  196. header.never_cache_twig:
  197. type: toggle
  198. toggleable: true
  199. label: PLUGIN_ADMIN.NEVER_CACHE_TWIG
  200. help: PLUGIN_ADMIN.NEVER_CACHE_TWIG_HELP
  201. highlight: 0
  202. options:
  203. 1: PLUGIN_ADMIN.YES
  204. 0: PLUGIN_ADMIN.NO
  205. validate:
  206. type: bool
  207. header.child_type:
  208. type: select
  209. toggleable: true
  210. label: PLUGIN_ADMIN.DEFAULT_CHILD_TYPE
  211. default: default
  212. placeholder: PLUGIN_ADMIN.USE_GLOBAL
  213. data-options@: '\Grav\Common\Page\Pages::types'
  214. header.routable:
  215. type: toggle
  216. toggleable: true
  217. label: PLUGIN_ADMIN.ROUTABLE
  218. help: PLUGIN_ADMIN.ROUTABLE_HELP
  219. highlight: 1
  220. options:
  221. 1: PLUGIN_ADMIN.ENABLED
  222. 0: PLUGIN_ADMIN.DISABLED
  223. validate:
  224. type: bool
  225. header.cache_enable:
  226. type: toggle
  227. toggleable: true
  228. label: PLUGIN_ADMIN.CACHING
  229. highlight: 1
  230. options:
  231. 1: PLUGIN_ADMIN.ENABLED
  232. 0: PLUGIN_ADMIN.DISABLED
  233. validate:
  234. type: bool
  235. header.visible:
  236. type: toggle
  237. toggleable: true
  238. label: PLUGIN_ADMIN.VISIBLE
  239. help: PLUGIN_ADMIN.VISIBLE_HELP
  240. highlight: 1
  241. options:
  242. 1: PLUGIN_ADMIN.ENABLED
  243. 0: PLUGIN_ADMIN.DISABLED
  244. validate:
  245. type: bool
  246. header.debugger:
  247. type: toggle
  248. toggleable: true
  249. label: PLUGIN_ADMIN.DEBUGGER
  250. help: PLUGIN_ADMIN.DEBUGGER_HELP
  251. highlight: 1
  252. options:
  253. 1: PLUGIN_ADMIN.ENABLED
  254. 0: PLUGIN_ADMIN.DISABLED
  255. validate:
  256. type: bool
  257. header.template:
  258. type: text
  259. toggleable: true
  260. label: PLUGIN_ADMIN.DISPLAY_TEMPLATE
  261. header.append_url_extension:
  262. type: text
  263. label: PLUGIN_ADMIN.APPEND_URL_EXT
  264. toggleable: true
  265. help: PLUGIN_ADMIN.APPEND_URL_EXT_HELP
  266. admin_only:
  267. type: section
  268. title: PLUGIN_ADMIN.ADMIN_SPECIFIC_OVERRIDES
  269. underline: true
  270. fields:
  271. header.admin.children_display_order:
  272. type: select
  273. label: PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER
  274. help: PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER_HELP
  275. toggleable: true
  276. classes: fancy
  277. default: 'collection'
  278. options:
  279. 'default': 'Ordered by Folder name (default)'
  280. 'collection': 'Ordered by Collection definition'
  281. header.order_by:
  282. type: hidden
  283. header.order_manual:
  284. type: hidden
  285. validate:
  286. type: commalist
  287. blueprint:
  288. type: blueprint