Skip to content
Snippets Groups Projects
  1. Jul 19, 2023
  2. Jul 18, 2023
  3. Jul 12, 2023
    • Jan Haller's avatar
      2144c42b
    • 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
  4. Jul 04, 2023
  5. Jun 20, 2023
  6. Jun 09, 2023
  7. Jun 07, 2023
  8. Jun 06, 2023
  9. Jun 05, 2023
  10. Jun 02, 2023
  11. Jun 01, 2023
  12. May 31, 2023
Loading