mostly filebased Content Presentation System
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

conetent_elements.md 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Content Elements
  2. ================
  3. Within text in content it is possible to embed special functionality.
  4. Keywords with a combination of curly brackets and the vertical line call corresponding code.
  5. {| KEYWORD |}
  6. generally *keyword* refers to a function that can be passed header arguments and a body.
  7. {| ELEMENT_NAME:ARG1:ARG2:...
  8. .
  9. ...body...
  10. .
  11. |}
  12. ## some conventions
  13. ### [:CE:enable]
  14. Some content elements allow content to be included in the body. Some allow content elements inside this content. A nested bracket pair needs to be defined to do so. This is 1) because using the same combination {||} confuses the original dispatcher, and 2) to not clutter reserved keywords, it makes sense to define whatever suit you.
  15. {| devide:BREAK:<:> |}
  16. ## available Content Elements
  17. ### devide
  18. {| devide:BREAKPOINT[:CE:enable]
  19. BODY
  20. |}
  21. ### box
  22. An image, with different hover states of annotations and action when clicked on.
  23. {| box:TYPE[:CE:enable]
  24. picture:optional_hover_picture
  25. caption1
  26. caption2
  27. caption1_hover
  28. caption2_hover
  29. BODY
  30. |}
  31. TYPE: lightbox|download|internal|external
  32. - plain
  33. - lightbox[:classname]
  34. this type shows BODY in a lightbox when element is clicked
  35. NOTE: use CE:enable before classname
  36. EXAMPLE: {| box:lightbox:<:>:media |}
  37. - download:HREF
  38. make click action offer a download with URI=HREF
  39. - internal:PATH
  40. change page on click
  41. - external:HREF
  42. open HREF in new page