Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-61354

Support module taglibs in Freemarker templates

    Details

      Description

      Taglibs extracted to modules (like frontend taglibs) should be available from Freemarker templates in ADT, DDM, Web Content and Themes.

      Steps to validate:

      1. Add a new ADT for Blogs with this code

      <#assign liferay_ui = taglibLiferayHash["/META-INF/liferay-ui.tld"] />
      <#assign liferay_frontend = taglibLiferayHash["/META-INF/resources/liferay-frontend.tld"] />
      
      <@liferay_ui["message"] key="test" />
      <@liferay_frontend["horizontal-card"] text="test" />
      

      2. Add a blogs portlet to a page
      3. Edit the portlet Configuration > Display Settings and select the previously created ADT

      Expected behavior: The portlet displays a couple of messages, one for each taglib. No errors should be shown in the portal nor in the server log.

        Attachments

          Activity

            People

            Assignee:
            brian.lee Brian Lee
            Reporter:
            eduardo.garcia Eduardo García
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master