default.yaml 11 KB

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