Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9005

Support ResourceResolver.map() through Sightly

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Scripting HTL Engine 1.3.2-1.4.0
    • Fix Version/s: None
    • Component/s: Scripting
    • Labels:
      None

      Description

      It would be very convenient if there is a way to execute ResourceResolver.map(), without having to write Sling Models or other backend logic for this.

      I.e. Sling could provide a way to do so, for example by introducing a helper object, or a provider:

      ${resourceResolverHelper.map @ path = mySlingModel.path}
       ${mySlingModel.path @ map}
      or 
      ${mySlingModel.path @ mapped}
      or 
      ${mySlingModel.path @ resourceResolverMap} 
      

      Can we have a discussion regarding this, to work out an implementation guideline? I could work on creating a PR for this, when we decide the way forward.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Henry Kuijpers Henry Kuijpers
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: