Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-145975

Can't map an image type field to an editable background image

    Details

      Description

      When creating a Content Page or a DPT for a given Web Content Structure, when I try to map an image of a web content (or structure) to an image element of a custom fragment that is defined like this

      HTML:

      <div class="fragment_1" data-lfr-background-image-id="title-area"><div class="fragment_1" data-lfr-background-image-id="title-area"> hello</div>
      

      CSS:

      .fragment_1 {.fragment_1 { height: 320px; background: red;}
      

      (background image of a div)

      then I can't select an image field of the structure in the Mapping menu (the dropdown shows only text fields).
       
      Steps to reproduce: 

      1. Create a Content Page
      2. Drag and drop a fragment with an editable background image (one that uses the data-lfr-background-image-id attribute)
      3. Click on the editable image of the fragment and in the Mapping menu, select a Web Content with an image field

       

      Expected Result: 

      I see the image type fields of the Web Content sructure in the Field dropdown menu

      Current Result:

      I see only text type fields  of the Web Content sructure in the Field dropdown menu
       

        Attachments

          Activity

            People

            Assignee:
            team-echo Product Team Echo
            Reporter:
            daniel.defrancisco Daniel De Francisco
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Engineering Assignee:
            Victor Galan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              28 weeks, 1 day ago

                Packages

                Version Package
                7.4.3.10 CE GA10
                7.4.3.11 CE GA11
                Master