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

Create map button and panel for editables of any type

    Details

      Description

      The panel has a different behaviour depending on the type of page being edited, be sure to check the past behaviour of Content Pages and display page templates, see attached videos, the file FloatingToolbarMappingPanel.es.js and soy counterpart for reference

      The goal of this task is to render the panel as it is shown in the videos attached, this includes:

      In a content page:
      When the user clicks in the floating toolbar button, it should see an item selector field and a disabled select, after selecting the content with the itemselector the disabled select should be enabled and filled with the available fields of that content.

      Getting the availableFields is done calling the URL getAssetMappingFieldsURL (this has to be added to the page editor config in ContentPageEditorDisplayContext.java) passing the classNameId and the classPK of the selected content

      In a display page template
      When the user clicks the floating toolbar button, it should see a select allowing to change the source, and a select with all the available fields, this fields will be available in the config

      Changing the source to "specific content" should do the same as in a content page

       

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            julien.castelain Julien Castelain
            Engineering Assignee:
            Diego Nascimento
            Recent user:
            Marta Elicegui
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.3.0 CE GA1
                Master