Uploaded image for project: 'Forum (closed)'
  1. Forum (closed)
  2. MGNLFORUM-225

Make forum-templates (components) nullpointer-safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.3
    • None
    • templates
    • None

      When crating a forum, some pages must be created and to those require some special components which must be added.
      (see old docu: http://docuold.magnolia-cms.com/modules/forum.html#Step5Createpages)
      After clicking save while adding the components, the page gets reloaded and some of required request parameters get lost.
      Theses parameters are important to allow the components render appropriately.

      • forumId on the page „thread-list“ and „create new thread“
      • threadId on the page „message“

      Mostly ever when viewing this pages in the pagesApp, the req.-params are missing, which leads to an error in the template-script, which shows the yellow freemarker-exception-stack-trace.
      This is very irritating for a content-editor!

      Fix the freemarker-scripts in a way, that the render doesn’t throw an exception and show a usefull comment why the cpomeponent cannot be rendered properly currently and probably add a link in that comment with a proper URL with thhe required req.-params to properly display the forum-comps.

        Acceptance criteria

              cmeier Christoph Meier
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: