You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Andreas Schaefer (Jira)" <ji...@apache.org> on 2019/08/23 18:39:00 UTC

[jira] [Created] (SLING-8655) Add an Annotation to Sling Model to mark a property to be Externalized

Andreas Schaefer created SLING-8655:
---------------------------------------

             Summary: Add an Annotation to Sling Model to mark a property to be Externalized
                 Key: SLING-8655
                 URL: https://issues.apache.org/jira/browse/SLING-8655
             Project: Sling
          Issue Type: New Feature
          Components: Sling Models
    Affects Versions: Sling Models API 1.3.8
            Reporter: Andreas Schaefer
            Assignee: Andreas Schaefer
             Fix For: Sling Models API 1.3.10


For Peregrine CMS we use Sling Models to obtain data in JSon format to be rendered on the client side. This means that the returned content is not externalized aka paths are not mapped to the external view.

Sling Model should have an Annotation (@ExternalizedPath) that marks a property to be externalized when loaded.

In order to be flexible the Externalized Path Injector should be pluggable so that customers can add their custom Externalized Path Providers if they choose to do so. By default there is a provider that uses the Resource Resolver's map() function.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)