Skip to content
Snippets Groups Projects
  1. Feb 09, 2024
  2. Feb 02, 2024
  3. Jan 24, 2024
  4. Jan 19, 2024
  5. Jan 18, 2024
  6. Jan 15, 2024
  7. Jan 14, 2024
  8. Jan 13, 2024
  9. Jan 12, 2024
  10. Jan 10, 2024
  11. Jan 09, 2024
  12. Jan 05, 2024
  13. Jan 01, 2024
  14. Dec 30, 2023
  15. Dec 29, 2023
  16. Dec 26, 2023
  17. Dec 22, 2023
  18. Dec 20, 2023
  19. Dec 15, 2023
  20. Dec 14, 2023
  21. Dec 13, 2023
  22. Nov 27, 2023
  23. Nov 24, 2023
  24. Nov 10, 2023
  25. Nov 08, 2023
  26. Jul 12, 2023
    • Jan Haller's avatar
      ipa_haller_jan (WIP): Did some major refactoring for renderWiki() which now... · f3fed8dd
      Jan Haller authored
      ipa_haller_jan (WIP): Did some major refactoring for renderWiki() which now uses a DOMXPath() to iterate over the elements. This enables the modification of the DomDocument() during the iteration. DOMElements can now be created and inserted into the DomDocument() at their corresponding position (e.g. <div> containing link to edit a section, list with table of contents, etc.). With this approach the DOM as a whole can later be converted to HTML and returned instead of converting each element into HTML and returning it immediately. This solves several problems regarding nested elements (e.g. tables) and makes the code flexible. The macro '{{collapse()}}' needs to be replaced separately at the end because it is not possible while iterating over the elements. The functions loadWikiContent() and getWikiContentSection() have slightly been adjusted as well to deal with the problem of nested elements. With the current approach the functions iterate over each child of <body>. As a consequence, every heading element must be placed on the highest level, meaning it cannot be a child of a <div> for example. The function doNavigation() recursively creates a navigation from the current page to its parent and so on. Constants have been updated and a CSS rule for the navigation has been added. refs #15634
      f3fed8dd
  27. Jun 05, 2023
  28. Jun 02, 2023
  29. Apr 25, 2023
Loading