[MGNLUI-7703] Linking via norsu content type (spike) Created: 20/Dec/22  Updated: 03/Feb/23  Resolved: 04/Jan/23

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Spike Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Done Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7712 Implementation Sub-task Completed Roman Kovařík  
Template:
Date of First Response:
Epic Link: Norsu Fields
Sprint: Nucleus 27
Story Points: 5
Team: Nucleus
Work Started:

 Description   

Expected results

As content type/dialog/app developer, I don't need to know backend details of the content type I want link to. So I can just do

link: 
  $type: linkField
  datasource: 
    $type: contentDatasource //ideally, this could be omitted if norsu is in webapp
    contentType: car

Moreover, there is a push to introduce workspace property at contentDatasource level. The configuration is just duplicating something which is configured on content type level already.

Actual results

As developer, I need to know that content type cars is stored under rootPath /cars in the backend.

link: 
  $type: linkField
  datasource: 
    $type: contentDatasource
    rootPath: /cars

Development notes

The output of this spike is a PoC implementation of the suggested feature (or report why this is not possible/implemented)



 Comments   
Comment by Christopher Zimmermann [ 11/Jan/23 ]

This looks nice. I am wondering though - how do you see this working in the case that I expect where we have a variety of "app flavors" all on one instance.

  • content apps generated by content types - JCR
  • content apps without content types - JCR 
  • content apps generated by content types - Norsu
  • content apps without content types - Norsu 

Or do you expect that some of these are not an option, or that it wont be suppported to have some of these combinations?

Regarding:
$type: contentDatasource //ideally, this could be omitted if norsu is in webapp
Did you write this becaause you dont expect to have a non-conenttype based content app?

Generated at Mon Feb 12 09:48:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.