<?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>Create Fragments Using Theme In Liferay 7.1</title>
  <link rel="self" href="https://liferay.dev/fr/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110952259" />
  <subtitle>Create Fragments Using Theme In Liferay 7.1</subtitle>
  <id>https://liferay.dev/fr/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110952259</id>
  <updated>2026-06-28T21:42:47Z</updated>
  <dc:date>2026-06-28T21:42:47Z</dc:date>
  <entry>
    <title>RE: Create Fragments Using Theme In Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111651992" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111651992</id>
    <updated>2018-11-23T12:34:24Z</updated>
    <published>2018-11-23T12:34:24Z</published>
    <summary type="html">&lt;p&gt;Be aware that the site initializer is still evolving - it's
  undocumented because the API isn't fully baked.&lt;/p&gt;
&lt;p&gt;ResourceImporter, while deprecated, are still (typically) the way to
  go when importing content. However, in the case given (for fragments)
  I'd just model it all along what you find in Liferay's themes on
  github. Just be aware that this is not yet a stable API and it might
  require some work to adapt to newer versions of site initializers,
  especially once you upgrade to 7.2, but maybe earlier.&lt;/p&gt;
&lt;p&gt;Another way is to not bundle your fragments in your theme, but
  provide them as separate export. The export format is a zip file that
  you can easily inspect and create manually as well.&lt;/p&gt;
&lt;p&gt;Disclaimer: This is my personal understanding of the differences
  between ResourceImporter and SiteInitializer.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2018-11-23T12:34:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: Create Fragments Using Theme In Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111651393" />
    <author>
      <name>Pasi Kössi</name>
    </author>
    <id>https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111651393</id>
    <updated>2018-11-23T11:53:32Z</updated>
    <published>2018-11-23T11:53:32Z</published>
    <summary type="html">&lt;p&gt;It seems writing a SiteInitializer implementation is now the
  preferred way, as even ResourceImporter has been deprecated in 7.1.
  The interface is in the source tree: https://github.com/liferay/liferay-portal/blob/master/modules/apps/site/site-api/src/main/java/com/liferay/site/initializer/SiteInitializer.java.&lt;/p&gt;
&lt;p&gt;I guess you can have a look at how Fjord theme has implemented the
  interface, but bear in mind the license implications if you plan to
  use that code as a basis.&lt;/p&gt;</summary>
    <dc:creator>Pasi Kössi</dc:creator>
    <dc:date>2018-11-23T11:53:32Z</dc:date>
  </entry>
  <entry>
    <title>Create Fragments Using Theme In Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110952258" />
    <author>
      <name>meet soni</name>
    </author>
    <id>https://liferay.dev/fr/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110952258</id>
    <updated>2018-09-14T12:20:36Z</updated>
    <published>2018-09-14T12:20:36Z</published>
    <summary type="html">&lt;p&gt;I want to add fragments using theme in liferay 7.1 but I'm not able
  to find any documentation from which I can add fragments in theme.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I've seen that in liferay 7.1 themes(&lt;a
    href="https://github.com/liferay/liferay-portal/tree/7.1.x/modules/apps/frontend-theme-westeros-bank"&gt;Liferay
    Westeros Bank Theme&lt;/a&gt;) they have imported fragments in which
  they've created &lt;br /&gt;
  &lt;strong&gt;Site Initializer&lt;/strong&gt; module, so is this the only way to
  import fragments using theme and if yes then how can I create such
  type of site initializer module in my custom theme?&lt;/p&gt;</summary>
    <dc:creator>meet soni</dc:creator>
    <dc:date>2018-09-14T12:20:36Z</dc:date>
  </entry>
</feed>
