default.yaml 11 KB

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