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

Implement a Twig helper to retrieve ContentType from a Content object

    XMLWordPrintable

Details

    Description

      In many cases you need to have access to the ContentType of a given Content object (like in a view template).

      This would let the developer check the content type identifier, or if the content type is a container or not.

      Example of helper:

      {% set contentType = ez_contenttype_by_content( content ) %}
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: