Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7361

Be able to convert multiple links in one <img> tag

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.6, 5.7
    • Fix Version/s: 5.6.11, 5.7.5, 6.1.1
    • Component/s: core
    • Labels:
      None
    • Patch included:
      Yes
    • Epic Link:
    • Sprint:
      Release 5.7.4 & LICMGMT, UI Framework 2
    • Story Points:
      5
    • Magnolia Release:
      5.6.12, 5.7.5, 6.1.1

      Description

      There can be scenarios where LinkUtil needs to be able handle more than one link conversion in a single <img> tag:

      Consider the following:

      <img 
        alt="promo" 
        src="test" 
        data-lazy="[${link:{uuid:{db52dd24-7d59-472b-bd53-c75f78849840},repository:{dam},path:{/destinations/south-central-america.png}}}, (default)],[${link:{uuid:{baa86f2d-b1c6-413e-9879-bc2b166f9f1d},repository:{dam},path:{/destinations/polar.png}}}, (medium)], [${link:{uuid:{61c6d945-e7aa-4947-98d4-fae2d0d2c9e6},repository:{dam},path:{/destinations/north-america.png}}}, (large)]" 
      />

      The property data-lazy has 3 links.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rdhar Rishab Dhar
              Reporter:
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 1.25h Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - 1.25h Remaining Estimate - 1h
                  1.25h