post.yaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. title: Post
  2. extends@: default
  3. form:
  4. fields:
  5. tabs:
  6. fields:
  7. content:
  8. fields:
  9. header.media_order:
  10. ordering@: 6
  11. content:
  12. ordering@: 2
  13. header.media_thumbnail:
  14. type: filepicker
  15. folder: '@self'
  16. preview_images: true
  17. label: Vignette
  18. header.taxonomy:
  19. unset@: true
  20. # header.danger:
  21. # type: toggle
  22. # label: Membre en danger ?
  23. # highlight: 0
  24. # default: 0
  25. # options:
  26. # 1: 'Oui'
  27. # 0: 'Non'
  28. # validate:
  29. # type: bool
  30. header.taxonomy.tag:
  31. type: selectize
  32. label: Categorie
  33. options:
  34. - text: "tribune"
  35. value: "tribune"
  36. - text: "communiqué"
  37. value: "communiqué"
  38. classes: fancy
  39. validate:
  40. type: commalist
  41. # header.post_files:
  42. # type: file
  43. # style: vertical
  44. # label: Mes fichiers
  45. # multiple: true
  46. # filesize: 1
  47. # destination: '@self'
  48. # accept:
  49. # - image/*
  50. content_title:
  51. type: spacer
  52. title: Sidebar
  53. header.post_sidebar:
  54. type: list
  55. style: vertical
  56. validate:
  57. type: array
  58. fields:
  59. .type_info:
  60. type: checkboxes
  61. label: Type
  62. default:
  63. url: false
  64. pages: false
  65. ressources: false
  66. options:
  67. url: Référence
  68. pages: Pages
  69. ressources: Ressources
  70. use: keys
  71. .title:
  72. type: text
  73. label: Titre
  74. validate: require
  75. .url:
  76. type: text
  77. label: référence extérieur (url)
  78. .page:
  79. type: pages
  80. size: medium
  81. # classes: fancy
  82. label: Pages
  83. show_all: false
  84. show_modular: false
  85. show_root: false
  86. start_route: '/actualites/'
  87. default: null
  88. .ressources:
  89. type: text
  90. label: Ressources - insérer le titre