<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to specify template path in Web content Free marker templates?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114742420" />
  <subtitle>How to specify template path in Web content Free marker templates?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114742420</id>
  <updated>2026-04-08T00:40:16Z</updated>
  <dc:date>2026-04-08T00:40:16Z</dc:date>
  <entry>
    <title>RE: How to specify template path in Web content Free marker templates?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114768971" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114768971</id>
    <updated>2019-08-16T14:22:58Z</updated>
    <published>2019-08-16T14:22:58Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I don't know if you can include web content templates like this, but we use a similar way to put all common freemarker macros into a file and deploy it using a theme. That way we can include those macros and use them in our own web content templates like this:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;lt;#import "/my-templates-theme_SERVLET_CONTEXT_/common_macros.ftl" as common&amp;amp;gt;
&amp;amp;lt;@common.showImage imageUrl=src alt=alt/&amp;amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2019-08-16T14:22:58Z</dc:date>
  </entry>
  <entry>
    <title>How to specify template path in Web content Free marker templates?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114742419" />
    <author>
      <name>Suresh Yadagiri</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114742419</id>
    <updated>2019-08-13T01:03:03Z</updated>
    <published>2019-08-13T01:03:03Z</published>
    <summary type="html">In 6.x world we place all web content templates in a theme and then refer them in velocity web content template using #parse(&amp;#34;my-templates-theme_SERVLET_CONTEXT_/templates/mytemplate.vm&amp;#34;)&lt;br /&gt;How do we achieve same in 7.2 for free marker templates?  We want to place all our web content templates in a theme?</summary>
    <dc:creator>Suresh Yadagiri</dc:creator>
    <dc:date>2019-08-13T01:03:03Z</dc:date>
  </entry>
</feed>
