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

Display Page Templates for custom Document Types cannot be displayed



      In 7.3, it is not possible to preview a document using a combination of a custom Document Type and Display Page Template. 

      Specifically the URL generated for that document in either an Asset Publisher or in Search results does not redirect to that Display Page Template.

      Expected Behaviour:

      The document displays a Friendly URL in Search Results or Asset Publisher which causes the Display Page Template to be used to render the full preview of the document and its fields.

      Observed Behaviour:

      Two different behaviours have been observed:

      1. If no DPT has been created for "Basic Document" a "generic" URL (i.e. not a Friendly URL) is generated and therefore the document previews in the context of where it was found (e.g. Search results portlet, Asset Publisher portlet)
      2. If a DPT has been created for "Basic Document" a friendly URL is generated, but the document is rendered in the DPT for "Basic Document", not it's own DPT

      Steps to Reproduce:

      1. Create a new Document Type, add one custom Field
      2. Create a Display Page Template mapped to this Document Type, add a Heading Fragment and edit the default text to "Custom Document Type".  Add a Paragraph Fragment and map to your custom field
      3. Mark this DPT as the Default for the Document Type
      4. Add a Document for your new Document Type, upload a file and ensure that a value is added for your custom field
      5. Search for this document, observe that the generated URL is not a friendly URL - e.g. 

      (This represents the first observed behaviour as described above)

      1. Now, add a new DPT for Basic Document, add a Heading Fragment and edit the default text to "Basic Document", add a Paragraph Fragment and map to the Title.
      2. Publish the DPT and mark it as the Default
      3. Search for your Document again, this time the URL is the friendly one - e.g. 
      1. Follow the link and observe that the DPT for Basic Document is used to display the document
        (This represents the second observed behaviour as described above) 


        Issue Links



              beck.liu Beck Liu
              beck.liu Beck Liu
              Kiyoshi Lee Kiyoshi Lee
              Jürgen Kappler Jürgen Kappler
              0 Vote for this issue
              2 Start watching this issue


                1 year, 40 weeks, 3 days ago


                  Version Package
                  7.3.10 DXP FP1
         DXP SP1
                  7.3.6 CE GA7