blog.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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