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

custom layoutTemplateId not applied from sitemap.json while creating site from theme

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.0.1 CE GA2, 7.0.0 DXP SP1
    • Fix Version/s: None
    • Labels:
    • Story Points:
      1.5
    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Create new custom theme
      2 .create new layout in that theme
      3. to liferay-look-and-feel.xml add

      <layout-templates>
      			<custom>
      				<layout-template id="foo_no_container_1_column" name="Foo no container 1 column">
      					<template-path>/layouttpl/custom/foo_no_container_1_column.tpl</template-path>
      					<thumbnail-path>/layouttpl/custom/foo_no_container_1_column.png</thumbnail-path>
      				</layout-template>
      			</custom>
      		</layout-templates>
      

      4. to sitemap.json add

      {
      	"layoutTemplateId": "foo_no_container_1_column",
      	"publicPages": 
      	[
      		{
      			"friendlyURL": "/home",
      			"name": "Home",
      			"title": "Home",
      			"layoutTemplateId": "foo_no_container_1_column",
      			"columns": 
      			[
      				[
      					{
      						"portletId": "com_liferay_journal_content_web_portlet_JournalContentPortlet",
      						"portletPreferences": 
      						{
      							"articleId": "Header.xml",
      							"groupId": "${groupId}",
      							"portletSetupShowBorders": "false"
      						}
      					}
      ]
      ]
      }]
      }
      
      

      5. deploy theme
      6. create new site from theme
      7. page has 2 Columns Liferay layout instead of custom one

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 7 weeks, 4 days ago

                Packages

                Version Package