<?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>Creating a custom layout within a custom theme</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114273198" />
  <subtitle>Creating a custom layout within a custom theme</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114273198</id>
  <updated>2026-04-07T05:15:45Z</updated>
  <dc:date>2026-04-07T05:15:45Z</dc:date>
  <entry>
    <title>RE: Creating a custom layout within a custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114420370" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114420370</id>
    <updated>2019-07-24T17:33:23Z</updated>
    <published>2019-07-24T17:33:23Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hey Kevin,&amp;nbsp;One strange&amp;nbsp;thing I noticed is that your second column has an id="column-8".&lt;pre&gt;&lt;code&gt;&amp;lt;div class="portlet-column span4" id="column-8"&amp;gt;
$processor.processColumn("column-2", "portlet-column-content")
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;It's been a while since I have created a custom layout, but maybe that has to be id="column-2"?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-07-24T17:33:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Creating a custom layout within a custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114392031" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114392031</id>
    <updated>2019-07-23T12:02:34Z</updated>
    <published>2019-07-23T12:02:34Z</published>
    <summary type="html">Hi,&lt;br /&gt;​​​​​​​ This issue might be because of theme name/id , delete the old theme from server and deploy again.</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-07-23T12:02:34Z</dc:date>
  </entry>
  <entry>
    <title>Creating a custom layout within a custom theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114273197" />
    <author>
      <name>Kevin Neibarger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114273197</id>
    <updated>2019-07-12T21:14:28Z</updated>
    <published>2019-07-12T21:14:28Z</published>
    <summary type="html">I&amp;#39;ve created a new .tpl file for a new layout that has 3 columns with specific colspans&lt;br /&gt;&lt;br /&gt;&amp;lt;div class=&amp;#34;columns-for-compass&amp;#34; id=&amp;#34;main-content&amp;#34; role=&amp;#34;main&amp;#34;&amp;gt;&lt;br /&gt;	&amp;lt;div class=&amp;#34;portlet-layout row-fluid&amp;#34;&amp;gt;&lt;br /&gt;		&amp;lt;div class=&amp;#34;portlet-column portlet-column-first span2&amp;#34; id=&amp;#34;column-1&amp;#34;&amp;gt;&lt;br /&gt;			$processor.processColumn(&amp;#34;column-1&amp;#34;, &amp;#34;portlet-column-content portlet-column-content-first&amp;#34;)&lt;br /&gt;		&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;		&amp;lt;div class=&amp;#34;portlet-column span4&amp;#34; id=&amp;#34;column-8&amp;#34;&amp;gt;&lt;br /&gt;			$processor.processColumn(&amp;#34;column-2&amp;#34;, &amp;#34;portlet-column-content&amp;#34;)&lt;br /&gt;		&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;		&amp;lt;div class=&amp;#34;portlet-column portlet-column-last span2&amp;#34; id=&amp;#34;column-3&amp;#34;&amp;gt;&lt;br /&gt;			$processor.processColumn(&amp;#34;column-3&amp;#34;, &amp;#34;portlet-column-content portlet-column-content-last&amp;#34;)&lt;br /&gt;		&amp;lt;/div&amp;gt;&lt;br /&gt;	&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;This file is called compass-layout.tpl and I&amp;#39;ve included it in my custom theme under /docroot/WEB-INF/src/layouttpl/custom/ folder. And my liferay-look-and-feel.xml looks like this&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34;?&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE look-and-feel PUBLIC &amp;#34;-//Liferay//DTD Look and Feel 6.2.0//EN&amp;#34; &amp;#34;http://www.liferay.com/dtd/liferay-look-and-feel_6_2_0.dtd&amp;#34;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;look-and-feel&amp;gt;&lt;br /&gt;	&amp;lt;compatibility&amp;gt;&lt;br /&gt;		&amp;lt;version&amp;gt;6.2.2+&amp;lt;/version&amp;gt;&lt;br /&gt;	&amp;lt;/compatibility&amp;gt;&lt;br /&gt;	&amp;lt;theme id=&amp;#34;compass&amp;#34; name=&amp;#34;Compass Theme&amp;#34;&amp;gt;&lt;br /&gt;	&lt;br /&gt;	&amp;lt;layout-templates&amp;gt;&lt;br /&gt;			&amp;lt;custom&amp;gt;&lt;br /&gt;				&amp;lt;layout-template id=&amp;#34;compass-new-layout&amp;#34; name=&amp;#34;3 Columns - Compass&amp;#34;&amp;gt;&lt;br /&gt;					&amp;lt;template-path&amp;gt;/WEB-INF/src/layoutttpl/custom/compass-layout.tpl&amp;lt;/template-path&amp;gt;&lt;br /&gt;					&amp;lt;wap-template-path&amp;gt;/WEB-INF/src/layoutttpl/custom/compass-layout.tpl&amp;lt;/wap-template-path&amp;gt;&lt;br /&gt;					&amp;lt;thumbnail-path&amp;gt;/images/thumbnail.png&amp;lt;/thumbnail-path&amp;gt;&lt;br /&gt;				&amp;lt;/layout-template&amp;gt;&lt;br /&gt;				&lt;br /&gt;			&amp;lt;/custom&amp;gt;&lt;br /&gt;		&amp;lt;/layout-templates&amp;gt;&lt;br /&gt;		&lt;br /&gt;	&amp;lt;/theme&amp;gt;&lt;br /&gt;&amp;lt;/look-and-feel&amp;gt;&lt;br /&gt;&lt;br /&gt;When I build and deploy this theme, I go to a Site Page settings and I can see the layout under the Details section of the page as &amp;#34;3 Columns - Compass&amp;#34; but when I select and Save it I see an error page &amp;#34;Site Pages is temporarily unavailable&amp;#34;. And the logs only show&lt;br /&gt;&lt;br /&gt;21:12:29,603 ERROR [http-bio-8080-exec-84][render_portlet_jsp:77] null&lt;br /&gt;java.lang.ArrayIndexOutOfBoundsException&lt;br /&gt;&lt;br /&gt;Any ideas??</summary>
    <dc:creator>Kevin Neibarger</dc:creator>
    <dc:date>2019-07-12T21:14:28Z</dc:date>
  </entry>
</feed>
