Forums / Setup & design / fetch filter - related objects

fetch filter - related objects

Author Message

Marko Žmak

Thursday 10 February 2005 1:07:28 pm

I have defined a class with a related object attribute. I want to fetch all the nodes that have that attribute set to a certain object. How do I do that?

P.S. I don't want to fetch all the nodes, and filter them later manually.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gabriel Ambuehl

Friday 11 February 2005 1:08:19 am

You currently can't do that. I think you'd need to write your own template operator (I was thinking about doing that, but I don't have the time right now).

Visit http://triligon.org

Marko Žmak

Friday 11 February 2005 6:01:02 am

Are there any plans to implement that in the future as a standard part of eZ?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gabriel Ambuehl

Sunday 13 February 2005 9:57:36 am

I wrote this today, take a look at http://ez.no/community/contribs/template_plugins/filter_related_filter_reverse_related

I appreciate any comments. It's not been heavily tested so far.

Visit http://triligon.org