Uploaded image for project: 'PUBLIC - Liferay Documentation'
  1. PUBLIC - Liferay Documentation
  2. LRDOCS-7857

Mapping Web Content Templates to Fragments

    Details

      Description

      Some fields are not supported for mapping by default. For these fields you must create a separate template. You can then map the web-contents template to a fragment. This ends up being a kind of work around to map fields that wouldn't normally be able to map to fragments, such as a select.

      For instance, in the case of a select field, you would have to create a template that only renders that select (`${Select4v3u.getData()}`). If for instance it also contained the title, then that would also be mapped to the fragment, which would likely not produce the desired outcome. So this template should just contain the desired structure field you want to make available for mapping.

      The available custom structure fields will show up in the mapping dialog with an “*” to denote that they are templates.

        Attachments

          Activity

            People

            Assignee:
            jr.houn JR Houn
            Reporter:
            michael.williams Michael Williams (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support

                  Packages

                  Version Package
                  7.2.x
                  7.3.x