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

Using Soy inside of Web Content Freemarker templates

    Details

      Description

      It's currently not possible to use the soy:template-renderer tag inside Web Content Freemarker Templates.

      Steps to reproduce:

      Create a simple Web Content Structure and associate a Web Content Template using the following code

      <#assign liferay_soy = taglibLiferayHash["/META-INF/resources/soy.tld"] /> 
      <#assign context = {"spritemap": "${themeDisplay.getPathThemeImages()}/lexicon/icons.svg", "symbol": "sheets"} /> 
      
      <@liferay_soy["template-renderer"] 
          context=context 
          templateNamespace="ClayIcon.render" 
      />

      Expected: 

      Template renders and shows an icon

      Current result:

      Exception is thrown. See attached image

        Attachments

        1. soy_code.png
          soy_code.png
          14 kB
        2. soy_console.png
          soy_console.png
          49 kB
        3. soy_error.png
          soy_error.png
          50 kB

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              jose.balsas Chema Balsas
              Participants of an Issue:
              Recent user:
              Michael Saechang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 11 weeks, 1 day ago

                Packages

                Version Package
                7.1.0 Beta 3
                7.1.X
                Master