Uploaded image for project: '[Read Only] - Hippo Essentials'
  1. [Read Only] - Hippo Essentials
  2. ESSENTIALS-1286

Make essentials banner component work with auto-generated content beans

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 13.4.0
    • 14.0.0, 13.4.1
    • None
    • None

    Description

      The Essentials Banner component's default freemarker template has an explicit class check for the document type used. This is the specific line:

      <#if document.class.name == 'org.example.beans.Banner'>

      When the banner document is changed (by adding a field for instance), the bean class is also changed resulting in this statement evaluating to false. By changing the line to:

      <#if hst.isBeanType(document, 'org.example.beans.Banner')>

      the template would render as normal in both situations.

      Alternatively, the entire type check can be replaced with <#if document??> which is what all other Essentials components appear to do.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ghendrix Gijs Hendrix (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: