-
Type:
Technical Testing
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
Case1 :
Collection Filters with text works in content page
- Enable collection filter fragment with this gogoshell command:
"scr:enable com.liferay.fragment.renderer.collection.filter.internal.CollectionFilterFragmentRenderer" - Add a blog, fill blog content as content
- Add a web content with text > title : Web Content Title content: web content content
- Add a dynamic collection with all types
- Add a content page and a collection display to page
- Select the created collection
- Add a content diplay fragment to collection display
- Add a collection filter to page
- Select created collection as Target Collection
- Select Keywords for Filter
- Publish content page
- Search Web
- Assert only web content displays
Case 2:
The user could view a warning info in Collection Filter fragment when no collection in page
- Enable collection filter fragment with this gogoshell command:
"scr:enable com.liferay.fragment.renderer.collection.filter.internal.CollectionFilterFragmentRenderer" - Add a content page
- Add a collection filter to page
- Assert there's a warning message indicates to the user that Display a collection on the page so that you can use the collection filter fragment.
Case3:
Collection Filters with category works in display page template
- Enable collection filter fragment with this gogoshell command:
"scr:enable com.liferay.fragment.renderer.collection.filter.internal.CollectionFilterFragmentRenderer" - Add a vocabulary named Availability
- Add two categories named Instock and Sellout
- Add the first web content
- Add the second web content with Sellout
- Add the third web content with Instock
- Add a manual collection named Hot Sale for All Types
- Add the second and third web contents to the manual collection
- Add a display page template for Web Content Article and Basic Web Content
- Add a Collection Display fragment to display page template
- Select the manual collection in Collection Display
- Select the Bordered List in List Style
- Add a Collection Filter above the Collection Display
- Select manual collection as Target Collection
- Select Category for Filter
- Select the Availability vocabulary in Source
- Add a Heading fragment above the Collection Filter
- Map the Title field to editable field
- Publish display page template
- Edit the first web content
- Select the DPT as Specific
- View Content
- View the title of first web content shown in Heading
- View the second and third web contents shown in Collection Display
- Select the Instock category in Collection Filter
- View the title of first web content shown in Heading
- View only the third web content shown in Collection Display
Case4:
Collection Filters with text works in content page template
Enable collection filter fragment with this gogoshell command:
"scr:enable com.liferay.fragment.renderer.collection.filter.internal.CollectionFilterFragmentRenderer"Add a blog with title blog titleAdd a web content with title web content titleAdd a content page templateAdd a collection display fragment to display page templateSelect Collection Providers > Recent ContentSelect the Bordered List in List StyleAdd a Collection Filter above the Collection DisplaySelect Recent Content as Target CollectionSelect Keywords for FilterPublish page templateAdd a content page basing on created page templatePublish content pageSearch web content titleAssert only web content displays
Case5:
Can filter different Collection Displays by different Collection Filters
- Enable collection filter fragment with this gogoshell command:
"scr:enable com.liferay.fragment.renderer.collection.filter.internal.CollectionFilterFragmentRenderer" - Add a blog with title blog title
- Add a web content with title web content title
- Add a dynamic collection, Item Type selected with Blog Entry
- Add a second dynamic collection, Item Type selected with Web Content Article > Basic Web Content
- Add a content page and a collection display to page
- Select the first created collection
- Add a conent display fragment to collection display fragment
- Add a second collection display to page
- Select the second created collection
- Add a conent display fragment to the second collection display fragment
- Add a collection filter to page
- Select the first collection as Target Collection
- Search for title
- Assert only blog displays
- Edit content page and Select the first collection as Target Collection
- Search for title
- Assert only web content displays
- Edit content page and Select the both collections as Target Collection
- Search for title
- Assert blog and web content display