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

No content assist for Essentials classes in web files templates

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • High
    • Resolution: Fixed
    • 2.2.0
    • 3.0.0
    • None

    Description

      Freemarker templates for Essentials features in webfiles use Essentials classes, for example org.onehippo.cms7.essentials.components.paging.Pageable in the site/freemarker/hstdefault/newslist-main-newslist.ftl.

      These classes are not a dependency of the webfiles maven module, so content assist for these objects is not available. Also the @ftlvariable at the top of the template results in an error for that template when using Intellij (see screenshot).

      The problem can be solved by adding this dependency to the webfiles pom:

      <dependency>
      <groupId>org.onehippo.cms7</groupId>
      <artifactId>hippo-essentials-components-hst</artifactId>
      <scope>provided</scope>
      </dependency>

      I don't think it should be part of the archetype, but better be added by Essentials when needed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bleunis Bert Leunis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: