<?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>Widget template cannot be emeded inside the same template type.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122061662" />
  <subtitle>Widget template cannot be emeded inside the same template type.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122061662</id>
  <updated>2026-04-03T20:02:29Z</updated>
  <dc:date>2026-04-03T20:02:29Z</dc:date>
  <entry>
    <title>RE: RE: Widget template cannot be emeded inside the same template type.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122077271" />
    <author>
      <name>Vladimir Vukadinovic</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122077271</id>
    <updated>2023-10-06T07:51:03Z</updated>
    <published>2023-10-06T07:47:26Z</published>
    <summary type="html">&lt;p&gt;Hi Olaf, if we exclude any pragmatic thought, this is a serious
  breaking change, without any resolution. We made our navigation very
  flexible and automatic for editors with 2 layers. Liferay can make
  configurable this nesting option to prevent some malusage. One if
  condition made us the problem to reimplement everithing from the
  scratch, and our customer is very angry about that.&lt;br&gt; Reproduction
  steps:&lt;br&gt; 1.  Go to Design -&amp;gt; Templates -&amp;gt; Widget Templates and
  click plus to create a new one of type “Menu Display Template”&lt;br&gt; 2.
  Set the title &amp;quot;New Menu Template&amp;quot;&lt;br&gt; 3. Add the code bellow
  inside the FTL editor&lt;br&gt; &amp;lt;#assign preferences =
  freeMarkerPortletPreferences.getPreferences({&amp;quot;portletSetupPortletDecoratorId&amp;quot;:
  &amp;quot;barebone&amp;quot;}) /&amp;gt;&lt;br&gt; &amp;lt;@liferay.navigation_menu
  default_preferences=&amp;quot;${preferences}&amp;quot;
  instance_id=&amp;quot;instance1&amp;quot;/&amp;gt;&lt;br&gt; 4.Go to Fragments &amp;gt;
  Click on plus to create new Fragment Set &amp;gt; Set title “New Fragment
  Set”&lt;br&gt; 5.In the fragment set create a new fragment with name “New
  Fragment”&lt;br&gt; 6. In the HTML editor input code
  &amp;lt;lfr-widget-nav&amp;gt;&amp;lt;/lfr-widget-nav&amp;gt;&lt;br&gt; 7.Go to Home page
  and Edit it&lt;br&gt; 8. Find newly created fragment “New Fragment” and add
  to page&lt;br&gt; 9. Click on the configuration (three dots) and select
  &amp;quot;New Menu Template&amp;quot; to be displayed&lt;/p&gt;
&lt;p&gt;
  &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="font-family: Aptos , sans-serif;"&gt;Expected results:&lt;/span&gt;
  &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="font-family: Aptos , sans-serif;"&gt;Menu inside menu
      should appear &lt;/span&gt;
  &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="font-family: Aptos , sans-serif;"&gt;Current results:&lt;/span&gt;
  &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="font-family: Aptos , sans-serif;"&gt;The message “The
      application cannot include itself.”&lt;/span&gt;
  &lt;/span&gt;
&lt;/p&gt;</summary>
    <dc:creator>Vladimir Vukadinovic</dc:creator>
    <dc:date>2023-10-06T07:47:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Widget template cannot be emeded inside the same template type.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122073656" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122073656</id>
    <updated>2023-10-04T07:59:52Z</updated>
    <published>2023-10-04T07:59:51Z</published>
    <summary type="html">&lt;p&gt;All I can think of is the old Xzibit meme &amp;quot;Yo dawg, we hear you
  like navigation, so we put a navigation menu into your navigation, so
  that you can navigate while you navigate&amp;quot;.&lt;/p&gt;
&lt;p&gt;But seriously: Can you describe the underlying use case more? It
  might have a more elegant solution than (what feels like) recursion.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2023-10-04T07:59:51Z</dc:date>
  </entry>
  <entry>
    <title>Widget template cannot be emeded inside the same template type.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122061661" />
    <author>
      <name>Vladimir Vukadinovic</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122061661</id>
    <updated>2023-09-28T21:24:33Z</updated>
    <published>2023-09-28T08:39:23Z</published>
    <summary type="html">&lt;p&gt;If navigation widget template is embeded to another navidation
  template &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span
      style="font-family: Aptos , sans-serif;"&gt;&amp;lt;@liferay.navigation_menu
      default_preferences=&amp;quot;${preferences}&amp;quot;
      instance_id=&amp;quot;instance1&amp;quot;/&amp;gt; &lt;/span&gt;
  &lt;/span&gt;the error message is displayed &lt;span style="font-size: 11.0pt;"&gt;
    &lt;span style="font-family: Aptos , sans-serif;"&gt;“The application
      cannot include itself.”&lt;/span&gt;
  &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;The issue came up with Liferay DXP 7.4.&lt;/p&gt;
&lt;p&gt;Could this be optional, configuration, or property?&lt;/p&gt;</summary>
    <dc:creator>Vladimir Vukadinovic</dc:creator>
    <dc:date>2023-09-28T08:39:23Z</dc:date>
  </entry>
</feed>
