blog.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. content:
  15. fields:
  16. header.blog.config:
  17. type: toggle
  18. label: Gallerie
  19. highlight: 1
  20. options:
  21. 1: Oui
  22. 0: Non
  23. validate:
  24. type: bool
  25. advanced:
  26. fields:
  27. overrides:
  28. fields:
  29. header.child_type:
  30. default: item
  31. blog:
  32. type: tab
  33. title: Blog Config
  34. fields:
  35. content_title:
  36. type: spacer
  37. title: Content Definition
  38. header.content.items:
  39. type: textarea
  40. yaml: true
  41. label: Items
  42. default: '@self.children'
  43. validate:
  44. type: yaml
  45. header.content.limit:
  46. type: text
  47. label: Max Item Count
  48. default: 5
  49. validate:
  50. required: true
  51. type: int
  52. min: 1
  53. header.content.order.by:
  54. type: select
  55. label: Order By
  56. default: date
  57. options:
  58. folder: Folder
  59. title: Title
  60. date: Date
  61. default: Default
  62. header.content.order.dir:
  63. type: select
  64. label: Order
  65. default: desc
  66. options:
  67. asc: Ascending
  68. desc: Descending
  69. header.content.pagination:
  70. type: toggle
  71. label: Pagination
  72. highlight: 1
  73. default: 1
  74. options:
  75. 1: PLUGIN_ADMIN.ENABLED
  76. 0: PLUGIN_ADMIN.DISABLED
  77. validate:
  78. type: bool
  79. header.content.url_taxonomy_filters:
  80. type: toggle
  81. label: URL Taxonomy Filters
  82. highlight: 1
  83. default: 1
  84. options:
  85. 1: PLUGIN_ADMIN.ENABLED
  86. 0: PLUGIN_ADMIN.DISABLED
  87. validate:
  88. type: bool
  89. import@:
  90. type: partials/blog-bits
  91. context: blueprints://pages