blog.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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: textarea
  30. yaml: true
  31. label: Items
  32. default: '@self.children'
  33. header.content.limit:
  34. type: text
  35. label: Max Item Count
  36. default: 5
  37. validate:
  38. required: true
  39. type: int
  40. min: 1
  41. header.content.order.by:
  42. type: select
  43. label: Order By
  44. default: date
  45. options:
  46. folder: Folder
  47. title: Title
  48. date: Date
  49. default: Default
  50. header.content.order.dir:
  51. type: select
  52. label: Order
  53. default: desc
  54. options:
  55. asc: Ascending
  56. desc: Descending
  57. header.content.pagination:
  58. type: toggle
  59. label: Pagination
  60. highlight: 1
  61. default: 1
  62. options:
  63. 1: PLUGIN_ADMIN.ENABLED
  64. 0: PLUGIN_ADMIN.DISABLED
  65. validate:
  66. type: bool
  67. header.content.url_taxonomy_filters:
  68. type: toggle
  69. label: URL Taxonomy Filters
  70. highlight: 1
  71. default: 1
  72. options:
  73. 1: PLUGIN_ADMIN.ENABLED
  74. 0: PLUGIN_ADMIN.DISABLED
  75. validate:
  76. type: bool