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

Web Contents created through API calls don't have Display Pages associated

    Details

      Description

      Reproductions steps:

      1. Create a Web Content Folder, get its <folderId> from the journalArticleFolder database table
      2. Create a Display Page Template associated with Web Contents -> Basic Web Content structure. Set this DPT as default.
      3. Check the Basic Web Content structure's <structureId> from the ddmStructure database table
      4. Using the <folderId> and <structureId> from above send the following curl request:
        curl -X POST "http://localhost:8080/o/headless-delivery/v1.0/structured-content-folders/<folderId>/structured-contents" \
        -u test@liferay.com:test \
        -H "accept: application/json" \
        -H "Content-Type: application/json" \
        -d '
        {
        "contentStructureId": "<structureId>",
        "title": "Headless Article",
        "contentFields": [
        	{
        	"name": "content",
        	"contentFieldValue": {"data": "<h2>This is the content HTML</h2>"}
        	}
        ]
        }'
        
      5. Access the following URL: http://localhost:8080/-/headless-article

      Expected behaviour: The article is displayed using the DPT
      Actual behaviour: The article is not displayed

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joseph.pak Joseph Pak
              Reporter:
              balazs.safrany-kovalik Balázs Sáfrány-Kovalik
              Participants of an Issue:
              Recent user:
              David Gutiérrez Mesa
              Engineering Assignee:
              Balázs Sáfrány-Kovalik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                18 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP11
                  7.2.10.3 DXP SP4
                  7.2.X
                  7.3.X
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  7.3.6 CE GA7