projet.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. extends@: default
  2. form:
  3. fields:
  4. tabs:
  5. fields:
  6. content:
  7. fields:
  8. header.date:
  9. ordering@: -4
  10. type: datetime
  11. label: Date du projet
  12. toggleable: true
  13. help: Indiquez la date de la réalisation du projet, seulement l'année sera affichée sur le front.
  14. header.taxonomy:
  15. type: taxonomy
  16. label: PLUGIN_ADMIN.TAXONOMY
  17. multiple: true
  18. validate:
  19. type: array
  20. options:
  21. fields:
  22. publishing:
  23. fields:
  24. header.date:
  25. unset@: true
  26. taxonomies:
  27. unset@: true
  28. blog:
  29. type: tab
  30. title: Blog Item
  31. fields:
  32. header_options:
  33. type: section
  34. title: Header Options
  35. underline: true
  36. header.continue_link:
  37. type: toggle
  38. toggleable: true
  39. label: DF Style Link
  40. help: Daring Fireball style title link
  41. highlight: 1
  42. options:
  43. 1: PLUGIN_ADMIN.ENABLED
  44. 0: PLUGIN_ADMIN.DISABLED
  45. validate:
  46. type: bool
  47. header.header_image:
  48. type: toggle
  49. toggleable: true
  50. label: Display Header Image
  51. help: Enabled displaying of a header image
  52. highlight: 1
  53. options:
  54. 1: PLUGIN_ADMIN.ENABLED
  55. 0: PLUGIN_ADMIN.DISABLED
  56. header.header_image_file:
  57. type: text
  58. toggleable: true
  59. label: Image File
  60. help: image filename that exists in the page folder. If not provided, will use the first image found.
  61. placeholder: For example: myimage.jpg
  62. header.header_image_width:
  63. type: text
  64. toggleable: true
  65. label: Image Width
  66. size: small
  67. help: Header width in px
  68. placeholder: Default is 900
  69. validate:
  70. type: int
  71. min: 0
  72. max: 5000
  73. header.header_image_height:
  74. type: text
  75. toggleable: true
  76. label: Image Height
  77. size: small
  78. help: Header height in px
  79. placeholder: Default is 300
  80. validate:
  81. type: int
  82. min: 0
  83. max: 5000
  84. summary:
  85. type: section
  86. title: Summary
  87. underline: true
  88. header.summary.enabled:
  89. type: toggle
  90. toggleable: true
  91. label: Summary
  92. highlight: 1
  93. options:
  94. 1: PLUGIN_ADMIN.ENABLED
  95. 0: PLUGIN_ADMIN.DISABLED
  96. header.summary.format:
  97. type: select
  98. toggleable: true
  99. label: Format
  100. classes: fancy
  101. options:
  102. 'short': 'Use the first occurence of delimter or size'
  103. 'long': 'Summary delimiter will be ignored'
  104. header.summary.size:
  105. type: text
  106. toggleable: true
  107. label: Size
  108. classes: large
  109. placeholder: 300
  110. validate:
  111. type: int
  112. min: 1
  113. header.summary.delimiter:
  114. type: text
  115. toggleable: true
  116. label: Summary delimiter
  117. classes: large
  118. placeholder: ===
  119. import@:
  120. type: partials/blog-bits