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

Freemarker init_custom.ftl cannot currently be used to define macros. It appears to be ignored.

    Details

      Description

      I tried to define macros in init_custom.ftl but file appeared to be ignored probably due to freemarker namespacing issues.
      Tried it on both 6.0.6 and new nightly build of 6.1 released 2011-10-10.

      I also tried explicit import of file into namespace and then using that namespace to call macro. That also didn't work.

      Also try to make sure that variable overrides in that file work too.

      I tried following and it didn't in 6.0.6

      <#if layout??>
      <#assign company_name = community_name />
      <#assign company_url = community_default_url />
      </#if>

        Attachments

          Activity

            People

            Assignee:
            mika.koivisto Mika Koivisto
            Reporter:
            garpinc Garry X
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 29 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 CE M5