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

Add class filtering to fetch content/related_objects, with patch

    XMLWordPrintable

Details

    Description

      There is currently no way to filter resulting objects when fetching related_objects.

      The attached patch adds support for this feature, using the following syntax:

      {def $res1=fetch( content, related_objects, hash(
          'object_id', 2413,
          'all_relations', 'common',
          'related_class_identifiers', array( 'image' ),
      ))}
      

      For consistency sake, it could make sense to change the patch a bit to support the same syntax as fetch/content/list: class_filter_type:(include|exclude), class_filter_array:(class1,class2,classN). The underlying SQL perfectly fits this evolution.

      Attachments

        Activity

          People

            unknown unknown
            bd bd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: