[MGNLFE-7] Nested pages in React SPA Created: 14/Nov/19  Updated: 27/Apr/20  Resolved: 07/Jan/20

Status: Closed
Project: Magnolia Frontend Helpers
Component/s: React Renderer
Affects Version/s: None
Fix Version/s: 1.0.0

Type: Story Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Canh Nguyen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 9.5d
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLFE-25 'Page' in FE libraries instantiates m... Closed
causality
is causing MGNLFE-12 DOC: SPA can get its content from a M... Closed
dependency
depends upon MGNLFE-2 Assemble a React SPA Closed
supersession
supersedes MGNLFE-10 Provide a Page component in the React... 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)
Release notes required:
Yes
Documentation update required:
Yes
Epic Link: SPA Editor
Sprint: SPA Editor 13, SPA Editor 14
Story Points: 5

 Description   

As a SPA developer, I can create a SPA which can load content from different Magnolia pages, depending on the url route, so that I can fulfill a 'website-like' SPA requirement.

It should be possible for an SPA to get its content from a Magnolia page, or its subpages.

 

Acceptance Criteria:

  • Demo project: React SPA loads necessary content and templates from one magnolia page based on the url (routing).
  • Demo project: React demo illustrates a simple dynamic navigation based on nested subpages in Magnolia Page Editor. Need only support two levels of depth.

(AC can be satisfied by simple demo project, possibly no development on the SPA helper libraries is necessary.)

 

Optional: This demo project could be used, it has sample content including two levels of depth, and a navigation component & endpoint. (sample content in the _dev directory) https://github.com/magnolia-community/react-area51-alpha/tree/master/mag-aliens-demo



 Comments   
Comment by Christopher Zimmermann [ 16/Dec/19 ]

To be explicit: The pages could have different page templates chosen by the author. 

Generated at Mon Feb 12 05:43:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.