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

Support custom date format when mapping date fields to fragment elements

    Details

      Description

      Motivation:

      Web content dates (i.e. date type structure fields or create/modified dates) can be mapped to fragment editable to be displayed on a display page. However, the date format cannot be customizable. See liferay-portal/modules/apps/fragment/fragment-entry-processor/fragment-entry-processor-editable/src/main/resources/META-INF/resources/fragment/entry/processor/editable/text_field_template.tmpl.

      [#elseif .vars["field_name"]?is_date_like]
      		${.vars["field_name"]?datetime?string}
      

      Feature request:

      A fragment editor should be able to define the date format. Some options:

      • Attribute in the fragment HTML with the date format pattern (fine grain, for each use)
      • Fragment date format configuration (coarse grain, for all uses)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mateo.hermosin Mateo Hermosin
              Reporter:
              eduardo.garcia Eduardo García (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package