[ECOMMERCE-113] Investigation. Behaviour of Product List sub app Created: 04/Feb/19  Updated: 22/Feb/19  Resolved: 22/Feb/19

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Story Priority: Neutral
Reporter: Laura Delnevo Assignee: Chuong Doan Huy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 2d 1.5h
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2019-02-22 at 3.37.58 PM.png     PNG File Screen Shot 2019-02-22 at 3.38.13 PM.png    
Issue Links:
Cloners
is cloned by ECOMMERCE-129 Behaviour of Product List sub app Closed
Relates
relates to ECOMMERCE-110 Image preview in Products sub app dis... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: Access the product catalogs
Sprint: Add-Ons 5, Add-Ons 6
Story Points: 5

 Description   

As a user I want to be able to open multiple Product List sub apps, so that I can preview more than one category at the same time:

  • I can open multiple Product List tabs at the same time
  • I can see the name of the category on each open tab
  • Opening two sub app with the same category should result in opening/update the content of the existing one 

 



 Comments   
Comment by Laura Delnevo [ 12/Feb/19 ]

The outcome of this investigation will need Core work, just heads up, that we need to co-ordinate with Core team

Comment by Chuong Doan Huy [ 22/Feb/19 ]

We can open multiple Product List subapps !!!

There is a method "public boolean supportsLocation(Location location)" in SubApp class, when return "false", it will open new subapp and vice verse

Document link for this : https://documentation.magnolia-cms.com/display/DOCS61/Programming+an+app

With this, we only need to override this method follow our purpose by declaring a custom subapp class in yaml file. Example :

In ecommerceApp.yaml :

...

  products:

    class: info.magnolia.ui.contentapp.configuration.BrowserDescriptor

    subAppClass: info.magnolia.ecommerce.ui.apps.ecommerce.products.action.ContentBrowserSubAppEcommerce (this is our custom subapp to override supportsLocation method)

....

About "name of category on each open tab", i haven't investigated yet but setting name of tabs is probably possible.

Generated at Mon Feb 12 01:40:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.