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

Could not render a journal article with different templates using a parameter as in 6.2



      In 6.2 it was possible to render the articles with different templates using a parameter in the friendly url.

      It was defined in the https://github.com/liferay/liferay-portal-ee/blob/6.2.x/portal-impl/src/com/liferay/portlet/journalcontent/journal-content-friendly-url-routes.xml file that was removed in https://github.com/liferay/liferay-portal/commit/f6f19a8894c650173f05934ddb9602d8ba11fe90

      Steps to reproduce:

      1. Create a page and call it "display page"
      2. Add an asset publisher an configure it as the default one for the page (in order to make it selectable as display page)
      3. Create a new structure with 2 templates (once created copy their ddmTemplateKeys) with different content
      4. create a new article with this structure and select "display page" as display page
      5. Copy the friendlyURL of the article 
      6. put the friendlyURL of the article in the browser --> you should see the article with it's default template
      7. append one of the ddmTemplateKeys to the friendlyURL ( [friendlyURL]/[ddmTemplateKey1]) --> 

      Current: Error:

      Expected: you should browse to the article and it will be rendered with this template

      Extra steps to assert that the solution works

      1. append the second ddmTemplateKey to the friendlyURL ( [friendlyURL]/[ddmTemplateKey2]) --> you should browse to the article and it will be rendered with this template



          Issue Links



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


                • Created:
                  Days since last comment:
                  1 year, 1 week, 5 days ago


                  Version Package
                  7.1.3 CE GA4
                  7.1.10 DXP FP11