[MGNLREST-272] DOC: referenceResolver for richTextField with JCR item references Created: 27/Aug/20  Updated: 23/Oct/23  Resolved: 20/Oct/20

Status: Closed
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: 2.2.2
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Ashraf Khamis Assignee: Martin Drápela
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2020-09-09-11-46-11-898.png     Zip Archive responses9Sep2020.zip    
Issue Links:
documentation
documents MGNLREST-196 Convert returned links into public links Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: Headless Phase 2
Sprint: HL & LD 11, HL & LD 13
Story Points: 1

 Description   

To resolve rich text fields with JCR item references and convert those references to URLs, we provide the following referenceResolver class for the REST delivery endpoint:

info.magnolia.rest.reference.link.RichTextLinkResolverDefinition

Example configuration

class: info.magnolia.rest.delivery.jcr.v2.JcrDeliveryEndpointDefinition
workspace: website
depth: -1
bypassWorkspaceAcls: true
references:
  - name: referenceWithRichText
    propertyName: content
    referenceResolver:
      class: info.magnolia.rest.reference.link.RichTextLinkResolverDefinition

Page to update: https://documentation.magnolia-cms.com/display/DOCS62/Resolving+references+with+the+delivery+endpoint


Generated at Mon Feb 12 06:58:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.