Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21680

As a developer, I want to easily check if a Field is empty

    XMLWordPrintable

    Details

      Description

      In eZ Publish legacy, we could easily check if a field had content or not with

      {if $node.data_map.my_attribute.has_content}
          <!-- Do something -->
      {/if}
      

      We need a helper to do the same, both from template (Twig) and PHP (helper service)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jerome.vieilledent-obsolete@ez.no Jérôme Vieilledent (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: