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

Add class filtering to fetch content/related_objects, with patch

    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.

        Activity

        Hide
        ezrobot added a comment -

        This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

        Show
        ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          People

          • Assignee:
            unknown
            Reporter:
            Bertrand Dunogier
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: