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

Query Field's FielDefinitionIdentifier matcher doesn't test the field's identifier

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2.5.10, 3.0.4, 3.1.x-dev
    • None

    Description

      The matcher will only test if the content type has a field with the configured name, but will not test if the rendered field is the configured one.

      Furthermore, the documentation is incorrect. It says to use Identifier\FieldDefinition for the matcher's key, while it is necessary to use to service's id:

      content_query_field:
          blog_posts:
              match:
                  Identifier\ContentType: blog
                  '@EzSystems\EzPlatformQueryFieldType\eZ\ContentView\FieldDefinitionIdentifierMatcher': posts
              template: "@ezdesign/content_query/blog_posts.html.twig"
      

      Attachments

        Activity

          People

            bertrand.dunogier@ibexa.co Bertrand Dunogier
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: