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

Collection configuration with Site Initializer needs manual intervention

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.4.13 DXP U17
    • Fix Version/s: None
    • Labels:
      None

      Description

      Steps to Reproduce:

      1. Create a collection definition in a site intializer project
        a. make sure to add a tag like in the sample below
      2. Create a journal article and add the same tag in a site intializer project
      3. Create some more journal articles without the tag configured
      4. Create a page with a collection display fragment configured with the collection (dynamic)
      5. Build & deploy the site initializer and create a site based on it.

      Expected Result:
      See only journal article with the tag

      Actual Result:
      Any journal article is returned

      After saving the collection is manually saved you do get the right result

      // asset-list-entries.json
      [
        {
          "ddmStructureKey": "JOB",
          "title": "Homepage",
          "assetTagNames": ["highlight"],
          "unicodeProperties": {
            "anyClassType": "anyClassTypeJournalArticleAssetRendererFactory",
            "classNameIds": "com.liferay.journal.model.JournalArticle",
            "classTypeIds": "classTypeIdsJournalArticleAssetRendererFactory",
            "orderBy": [
              {
                "key": "orderByColumn1",
                "value": "modifiedDate"
              },
              {
                "key": "orderByColumn2",
                "value": "title"
              },
              {
                "key": "orderByType1",
                "value": "ASC"
              },
              {
                "key": "orderByType2",
                "value": "ASC"
              }
            ],
            "query": [
              {
                "key": "queryAndOperator",
                "value": "true"
              },
              {
                "key": "queryContains",
                "value": "true"
              },
              {
                "key": "queryName",
                "value": "assetTags"
              }
            ]
          }
        }]
      
      // journal article metadata json
      {
        "articleId": "job01",
        "ddmStructureKey": "JOB",
        "ddmTemplateKey": "JOB",
        "folder": "job",
        "name": "Sales Engineer",
        "assetTagNames": ["highlight"]
      }
      
      // part of the page with dynamic configuration of the collection display
      "definition": {
                                "collectionConfig": {
                                  "collectionReference": {
                                    "className": "com.liferay.asset.list.model.AssetListEntry",
                                    "classPK": [$ASSET_LIST_ENTRY_ID:HOMEPAGE$]
                                  },
                                  "collectionType": "Collection"
                                }
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            jan.verweij Jan Verweij
            Participants of an Issue:
            Recent user:
            Jan Verweij
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              13 weeks, 6 days ago

                Packages

                Version Package