blog.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. title: Blog
  2. @extends:
  3. type: default
  4. context: blueprints://pages
  5. child_type: item
  6. title: Default
  7. rules:
  8. slug:
  9. pattern: "[a-z][a-z0-9_\-]+"
  10. min: 2
  11. max: 80
  12. form:
  13. fields:
  14. tabs:
  15. type: tabs
  16. active: 1
  17. fields:
  18. advanced:
  19. fields:
  20. overrides:
  21. fields:
  22. header.child_type:
  23. default: item
  24. blog:
  25. type: tab
  26. title: Blog List
  27. fields:
  28. header.content.items:
  29. type: select
  30. label: Items
  31. default: @self.children
  32. options:
  33. @self.children: Children
  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: Enabled
  65. 0: Disabled