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

    Details

      Description

      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

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  24 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.3 CE GA4
                  7.1.10 DXP FP11
                  7.1.X
                  Master