default.yaml 11 KB

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