blog.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. extends@: default
  2. child_type: item
  3. rules:
  4. slug:
  5. pattern: "[a-z][a-z0-9_\-]+"
  6. min: 2
  7. max: 80
  8. form:
  9. fields:
  10. tabs:
  11. type: tabs
  12. active: 1
  13. fields:
  14. advanced:
  15. fields:
  16. overrides:
  17. fields:
  18. header.child_type:
  19. default: item
  20. blog:
  21. type: tab
  22. title: Blog Config
  23. fields:
  24. content_title:
  25. type: spacer
  26. title: Content Definition
  27. header.content.items:
  28. type: textarea
  29. yaml: true
  30. label: Items
  31. default: '@self.children'
  32. validate:
  33. type: yaml
  34. header.content.limit:
  35. type: text
  36. label: Max Item Count
  37. default: 5
  38. validate:
  39. required: true
  40. type: int
  41. min: 1
  42. header.content.order.by:
  43. type: select
  44. label: Order By
  45. default: date
  46. options:
  47. folder: Folder
  48. title: Title
  49. date: Date
  50. default: Default
  51. header.content.order.dir:
  52. type: select
  53. label: Order
  54. default: desc
  55. options:
  56. asc: Ascending
  57. desc: Descending
  58. header.content.pagination:
  59. type: toggle
  60. label: Pagination
  61. highlight: 1
  62. default: 1
  63. options:
  64. 1: PLUGIN_ADMIN.ENABLED
  65. 0: PLUGIN_ADMIN.DISABLED
  66. validate:
  67. type: bool
  68. header.content.url_taxonomy_filters:
  69. type: toggle
  70. label: URL Taxonomy Filters
  71. highlight: 1
  72. default: 1
  73. options:
  74. 1: PLUGIN_ADMIN.ENABLED
  75. 0: PLUGIN_ADMIN.DISABLED
  76. validate:
  77. type: bool
  78. import@:
  79. type: partials/blog-bits
  80. context: blueprints://pages