Updating the 6.2 Sitemap

Updating 6.2 Resources Importer

Step 3 of 3

In Liferay DXP 6.2, portlet IDs were incremental numbers. In Liferay DXP 7.2, they’re explicit class names. Update the sitemap.json file with the new portlet IDs. Follow these steps to update the sitemap:

  1. Replace the portlet IDs with the updated class names. The Portlet ID Quick Reference Guide list the default portlet IDs. Check liferay-portlet.xml for the portlet ID number in 6.2 and replace it with the updated ID in the quick reference Guide.

    The original and updated versions of the Lunar Resort theme’s sitemap.json are shown below:

    Original:

    {
    	"name": "Collaboration",
    	"title": "Collaboration",
    	"friendlyURL": "/collaboration",
    	"layoutTemplateId": "2_columns",
    	"columns": [
    		[
    			{
    			"portletId": "36"
    			}
    		],
    		[
    			{
    			"portletId": "115"
    			}
    		]
    
    	]
    }
    

    Updated:

    {
      "name": "Collaboration",
      "title": "Collaboration",
      "friendlyURL": "/collaboration",
      "layoutTemplateId": "2_columns",
      "columns": [
        [
          {
          "portletId": "com_liferay_wiki_web_portlet_WikiPortlet"
          }
        ],
        [
          {
          "portletId": "com_liferay_blogs_web_portlet_BlogsAgreggatorPortlet"
          }
        ]
    
      ]
    },
    
  2. Update references to the web content articles in the sitemap.json to use the XML file extensions.

Great! The Resources Importer updates are complete. Next you’ll apply Clay markup patterns to the theme’s custom UI.

« Updating 6.2 Web ContentApplying Clay Design Patterns »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています