[MGNLREF-2] Propose new canonical format for storing references Created: 04/Oct/17  Updated: 15/Mar/21  Resolved: 15/Mar/21

Status: Closed
Project: References (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Neutral
Reporter: Mikaël Geljić Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: references
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty

 Description   

Propose a "canonical" format for JCR (or any) references.
One of the requirements is that, just from the property value, you know where to get the item.
(currently not the case with link-fields, as workspace is not part of the property value)

jcr:workspace:uuid

my-item [mgnl:content]
  * foo = bar
  * image = jcr:dam:cafebabe-cafe-babe-cafe-cafebabe

jcr:workspace:path

my-item [mgnl:content]
  * foo = bar
  * image = jcr:dam:/images/item.png

node-based reference?

my-item [mgnl:content]
  * foo = bar
  * image [mgnl:reference]
    * type: jcr
    * workspace: dam
    * uuid: cafebabe-cafe-babe-cafe-cafebabe

1. We should also keep multi-value references in mind.
2. Does it make sense to have more than one default? and define precedence between few reference formats?


Generated at Mon Feb 12 10:39:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.