-
Type:
Bug
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 7.4.13 DXP U17
-
Fix Version/s: None
-
Component/s: Site Initializer Extender
-
Labels:None
Steps to Reproduce:
- Create a collection definition in a site intializer project
a. make sure to add a tag like in the sample below - Create a journal article and add the same tag in a site intializer project
- Create some more journal articles without the tag configured
- Create a page with a collection display fragment configured with the collection (dynamic)
- 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" }